Add build and install scripts
This commit is contained in:
parent
e8059d2fbd
commit
af81c26d98
3 changed files with 35 additions and 0 deletions
14
meta/build
Executable file
14
meta/build
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
pushd gdn-cli
|
||||
cargo build --release
|
||||
popd
|
||||
|
||||
pushd gdn-app
|
||||
pnpm install --frozen-lockfile
|
||||
pnpm tauri build
|
||||
popd
|
||||
|
||||
echo "gdn-cli can be found at target/release/gdn-cli"
|
||||
echo "gdn-app can be found at target/release/gdn-app"
|
||||
12
meta/build_android
Executable file
12
meta/build_android
Executable file
|
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
pushd gdn-app
|
||||
pnpm install --frozen-lockfile
|
||||
pnpm tauri android build --apk
|
||||
popd
|
||||
|
||||
mkdir -p target/release/
|
||||
mv gdn-app/src-tauri/gen/android/app/build/outputs/apk/universal/release/app-universal-release.apk target/release/gdn-app.apk
|
||||
|
||||
echo "gdn-app.apk can be found at target/release/gdn-app.apk"
|
||||
9
meta/install_android
Executable file
9
meta/install_android
Executable file
|
|
@ -0,0 +1,9 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
$ANDROID_HOME/platform-tools/adb devices
|
||||
|
||||
echo "Waiting to give phone a chance to connect"
|
||||
sleep 5
|
||||
|
||||
$ANDROID_HOME/platform-tools/adb install -r target/release/gdn-app.apk
|
||||
Loading…
Add table
Add a link
Reference in a new issue