chore(bundler) rename tauri-cli crate to tauri-bundler (#401)

This commit is contained in:
Lucas Fernandes Nogueira 2020-02-08 12:51:48 -03:00 committed by GitHub
parent 3e1ce404f5
commit 7522d8ff8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
36 changed files with 19 additions and 19 deletions

2
.github/CODEOWNERS vendored
View File

@ -13,7 +13,7 @@
/examples/ @tauri-apps/testing
/cli/tauri-cli/ @tauri-apps/bundler
/cli/tauri-bundler/ @tauri-apps/bundler
/cli/tauri.js/ @tauri-apps/js-cli

View File

@ -13,7 +13,7 @@ jobs:
run: cargo login ${{ secrets.crate_token }}
- name: Publish CLI
run: |
cd cli/tauri-cli
cd cli/tauri-bundler
echo "We will publish this directory."
ls # cargo publish
- name: Publish TAURI

View File

@ -52,7 +52,7 @@ jobs:
with:
path: ${{ format('{0}/registry/cache/', matrix.CARGO_HOME) }}
key: ${{ runner.OS }}-build-reg-cache-${{ hashFiles('**/Cargo.toml') }}-
- run: cargo install tauri-cli --force
- run: cargo install tauri-bundler --force
# if we pull from cache, this will be skipped, but force just in case cache has an issue but it does exist
if: steps.cache_rust_bin.outputs.cache-hit != 'true' || steps.cache_rust_reg_index.outputs.cache-hit != 'true' || steps.cache_rust_reg_cache.outputs.cache-hit != 'true'
- name: cache node modules

View File

@ -76,7 +76,7 @@ jobs:
env:
TAURI_DIST_DIR: ../../test/fixture/dist
TAURI_DIR: ../test/fixture/src-tauri
- run: cargo install --path ./cli/tauri-cli --force
- run: cargo install --path ./cli/tauri-bundler --force
- name: install cli deps via yarn
run: |
cd ./cli/tauri.js

View File

@ -52,7 +52,7 @@ jobs:
toolchain: stable
- name: build
run: |
cd ./cli/tauri-cli
cd ./cli/tauri-bundler
cargo build
test-tauri-js-cli:

View File

@ -20,7 +20,7 @@ Tauri is a tool for building tiny, blazing fast binaries for all major desktop p
|-----------|---------|-----|-----|-----|
| tauri.js CLI | ![](https://img.shields.io/npm/v/tauri.svg) |✅|✅|✅|
| tauri core | ![](https://img.shields.io/crates/v/tauri.svg) |✅|✅|✅|
| tauri bundler | ![](https://img.shields.io/crates/v/tauri-cli.svg) |✅|✅|✅ |
| tauri bundler | ![](https://img.shields.io/crates/v/tauri-bundler.svg) |✅|✅|✅ |
## Who Tauri is For
Because of the way Tauri has been built and can be extended, developers
@ -48,7 +48,7 @@ What will you make?
Tauri has five major components:
- [Node.js CLI](https://github.com/tauri-apps/tauri/tree/dev/cli/tauri.js) for creating, developing and building apps
- [Rust Core](https://github.com/tauri-apps/tauri/tree/dev/tauri) for binding to the low level WEBVIEW and providing a tree-shakeable API
- [Rust Bundler](https://github.com/tauri-apps/tauri/tree/dev/cli/tauri-cli) for manufacturing the final binaries
- [Rust Bundler](https://github.com/tauri-apps/tauri/tree/dev/cli/tauri-bundler) for manufacturing the final binaries
- [Rust Bindings](https://github.com/Boscop/web-view) for Webviews
- [Webview](https://github.com/Boscop/web-view/tree/master/webview-sys)
Low level library for creating and interfacing with OS "native" webviews

View File

@ -1,7 +1,7 @@
workspace = {}
[package]
name = "tauri-cli"
name = "tauri-bundler"
version = "0.1.2"
authors = ["George Burton <burtonageo@gmail.com>", "Lucas Fernandes Gonçalves Nogueira <lucas@quasar.dev>", "Daniel Thompson-Yvetot <denjell@sfosc.org>", "Tensor Programming <tensordeveloper@gmail.com>"]
license = "MIT/Apache-2.0"
@ -50,7 +50,7 @@ hex = { version = "0.4" }
tempfile = "3"
[[bin]]
name = "cargo-tauri-cli"
name = "cargo-tauri-bundler"
path = "src/main.rs"
[features]

View File

@ -77,13 +77,13 @@ fn run() -> crate::Result<()> {
.iter()
.map(PackageType::short_name)
.collect();
let m = App::new("cargo-tauri-cli")
let m = App::new("cargo-tauri-bundler")
.version(format!("v{}", crate_version!()).as_str())
.bin_name("cargo")
.setting(AppSettings::GlobalVersion)
.setting(AppSettings::SubcommandRequired)
.subcommand(
SubCommand::with_name("tauri-cli")
SubCommand::with_name("tauri-bundler")
.author("George Burton <burtonageo@gmail.com>, Lucas Fernandes Gonçalves Nogueira <lucas@quasar.dev>, Daniel Thompson-Yvetot <denjell@sfosc.org>")
.about("Bundle Rust executables into OS bundles")
.setting(AppSettings::DisableVersion)
@ -130,12 +130,12 @@ fn run() -> crate::Result<()> {
Arg::with_name("version")
.long("version")
.short("v")
.help("Read the version of the CLI"),
.help("Read the version of the bundler"),
),
)
.get_matches();
if let Some(m) = m.subcommand_matches("tauri-cli") {
if let Some(m) = m.subcommand_matches("tauri-bundler") {
if m.is_present("version") {
println!("{}", crate_version!());
} else {

View File

@ -168,7 +168,7 @@ module.exports = () => {
key: ' cargo',
value: getVersion('cargo', [], output => output.split(' ')[1])
})
printInfo({ key: ' tauri-cli', value: getVersion('cargo', ['tauri-cli']) })
printInfo({ key: ' tauri-bundler', value: getVersion('cargo', ['tauri-bundler']) })
printInfo({ key: 'Global packages', section: true })
printInfo({ key: ' NPM', value: getVersion('npm') })
printInfo({ key: ' yarn', value: getVersion('yarn') })

View File

@ -127,7 +127,7 @@ class Runner {
const buildFn = async (target?: string): Promise<void> =>
this.__runCargoCommand({
cargoArgs: [
cfg.tauri.bundle.active ? 'tauri-cli' : 'build',
cfg.tauri.bundle.active ? 'tauri-bundler' : 'build',
'--features',
...features
]

View File

@ -7,7 +7,7 @@ npm install -g tauri
git clone https://github.com/tauri-apps/tauri
cd examples/react/create-react-app
yarn
cargo install tauri-cli
cargo install tauri-bundler
```
### Development

View File

@ -7,7 +7,7 @@ npm install -g tauri
git clone https://github.com/tauri-apps/tauri
cd examples/react/next.js
yarn
cargo install tauri-cli
cargo install tauri-bundler
```
### Development

View File

@ -7,7 +7,7 @@ npm install -g tauri
git clone https://github.com/tauri-apps/tauri
cd examples/svelte/svelte-app
yarn
cargo install tauri-cli
cargo install tauri-bundler
```
### Development

View File

@ -36,7 +36,7 @@
},
{
"enabled": true,
"paths": ["cli/tauri-cli/**"],
"paths": ["cli/tauri-bundler/**"],
"groupName": "Tauri Bundler",
"groupSlug": "allTauriBundler",
"commitMessagePrefix": "chore(deps)",