mirror of
https://github.com/appdev/siyuan-unlock.git
synced 2026-03-07 17:27:57 +08:00
28 lines
644 B
Bash
Executable File
28 lines
644 B
Bash
Executable File
#!/bin/bash
|
|
|
|
|
|
echo 'Cleaning Builds'
|
|
rm -rf app/build
|
|
rm -rf app/kernel-linux
|
|
rm -rf app/stage/build
|
|
rm -rf android/app/libs
|
|
rm -rf android/app/src/main/assets
|
|
echo 'Building UI'
|
|
cd app
|
|
npm install && npm run build
|
|
cd ..
|
|
|
|
echo 'Building Kernel'
|
|
|
|
mkdir -p android/app/libs
|
|
mkdir -p android/app/src/main/assets
|
|
|
|
cd kernel
|
|
export GOPROXY=https://goproxy.io
|
|
gomobile bind --tags fts5 -ldflags '-s -w' -v -o ../android/app/libs/kernel.aar -target='android/arm64' -androidapi 24 ./mobile/
|
|
cd ..
|
|
rm android/app/libs/kernel-sources.jar
|
|
echo 'Building Resource'
|
|
cd app
|
|
zip -r ../android/app/src/main/assets/app.zip appearance/ guide/ stage/ changelogs/
|