chore(rust/gui-client): fix Tauri build scripts (#7077)

- We don't need to control our deb's deps since we're sticking with
Tauri
- Specifying `pnpm tauri` fixes an odd issue on one dev system
- `tauri-cli` is a dev dep, not a runtime dep
This commit is contained in:
Reactor Scram
2024-10-22 11:42:20 -05:00
committed by GitHub
parent 9b9a59c315
commit 1f8530ec24
4 changed files with 5 additions and 9 deletions

View File

@@ -11,4 +11,4 @@ REM Compile CSS
call pnpm tailwindcss -i src\input.css -o src\output.css
REM Compile Rust and bundle
call tauri build
call pnpm tauri build

View File

@@ -31,10 +31,6 @@ INTERMEDIATE_DIR=$(ls -d "$BUNDLES_DIR"/*/)
cp src-tauri/deb_files/postinst src-tauri/deb_files/prerm "$INTERMEDIATE_DIR/control/"
pushd "$INTERMEDIATE_DIR"
# Substitute our own list of deps
# This does nothing right now, but we'll need it for replacing Tauri
sed '/^Depends:/c\Depends: libayatana-appindicator3-1, libwebkit2gtk-4.0-37, libgtk-3-0' control/control > control/control.new
mv control/control.new control/control
# Rebuild the control tarball
tar -C "control" -czf "control.tar.gz" control md5sums postinst prerm

View File

@@ -12,10 +12,10 @@
},
"dependencies": {
"@tauri-apps/api": "^1.6",
"@tauri-apps/cli": "^1.6",
"flowbite": "^2.5.2"
},
"devDependencies": {
"@tauri-apps/cli": "^1.6",
"@types/node": "22",
"http-server": "^14.1.1",
"run-script-os": "^1.1.6",

View File

@@ -11,13 +11,13 @@ importers:
'@tauri-apps/api':
specifier: ^1.6
version: 1.6.0
'@tauri-apps/cli':
specifier: ^1.6
version: 1.6.2
flowbite:
specifier: ^2.5.2
version: 2.5.2
devDependencies:
'@tauri-apps/cli':
specifier: ^1.6
version: 1.6.2
'@types/node':
specifier: '22'
version: 22.7.5