mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
add android build script
This commit is contained in:
@@ -83,46 +83,46 @@ jobs:
|
|||||||
body: "Progressive web app mirrors:\n- https://plebchan.eth.limo\n- https://plebchan.eth.link\n- https://cloudflare-ipfs.com/ipns/plebchan.eth (insecure, no subdomain isolation)\n\nCLI client:\n- https://github.com/plebbit/plebbit-cli/releases/latest"
|
body: "Progressive web app mirrors:\n- https://plebchan.eth.limo\n- https://plebchan.eth.link\n- https://cloudflare-ipfs.com/ipns/plebchan.eth (insecure, no subdomain isolation)\n\nCLI client:\n- https://github.com/plebbit/plebbit-cli/releases/latest"
|
||||||
allowUpdates: true
|
allowUpdates: true
|
||||||
|
|
||||||
# android:
|
android:
|
||||||
# runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# permissions:
|
permissions:
|
||||||
# contents: write
|
contents: write
|
||||||
# steps:
|
steps:
|
||||||
# - uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
# - uses: actions/setup-java@v3
|
- uses: actions/setup-java@v3
|
||||||
# with:
|
with:
|
||||||
# distribution: 'zulu'
|
distribution: 'zulu'
|
||||||
# java-version: '11'
|
java-version: '11'
|
||||||
# - uses: gradle/gradle-build-action@v2
|
- uses: gradle/gradle-build-action@v2
|
||||||
# with:
|
with:
|
||||||
# gradle-version: 7.6
|
gradle-version: 7.6
|
||||||
# - uses: actions/setup-node@v2
|
- uses: actions/setup-node@v2
|
||||||
# with:
|
with:
|
||||||
# node-version: 16
|
node-version: 16
|
||||||
# - run: sudo apt install -y apksigner zipalign
|
- run: sudo apt install -y apksigner zipalign
|
||||||
|
|
||||||
# # build react app
|
# build react app
|
||||||
# - run: yarn install --frozen-lockfile
|
- run: yarn install --frozen-lockfile
|
||||||
# - run: CI='' yarn build
|
- run: CI='' yarn build
|
||||||
# # build apk
|
# build apk
|
||||||
# - run: npx cap update
|
- run: npx cap update
|
||||||
# - run: npx cap copy
|
- run: npx cap copy
|
||||||
# - run: cd android && gradle bundle
|
- run: cd android && gradle bundle
|
||||||
# - run: cd android && ./gradlew assembleRelease
|
- run: cd android && ./gradlew assembleRelease
|
||||||
# # optimize apk
|
# optimize apk
|
||||||
# - run: cd android/app/build/outputs/apk/release && zipalign 4 app-release-unsigned.apk app-release-unsigned-zip.apk
|
- run: cd android/app/build/outputs/apk/release && zipalign 4 app-release-unsigned.apk app-release-unsigned-zip.apk
|
||||||
# # sign apk
|
# sign apk
|
||||||
# # to create keystore: keytool -genkey -v -keystore plebbit.keystore -keyalg RSA -keysize 2048 -validity 10000 -alias release
|
# to create keystore: keytool -genkey -v -keystore plebbit.keystore -keyalg RSA -keysize 2048 -validity 10000 -alias release
|
||||||
# - run: cd android/app/build/outputs/apk/release && apksigner sign --ks ../../../../../plebbit.keystore --ks-pass pass:${{ secrets.PLEBBIT_REACT_KEYSTORE_PASSWORD }} --ks-key-alias release --out app-release-signed.apk app-release-unsigned-zip.apk
|
- run: cd android/app/build/outputs/apk/release && apksigner sign --ks ../../../../../plebbit.keystore --ks-pass pass:${{ secrets.PLEBBIT_REACT_KEYSTORE_PASSWORD }} --ks-key-alias release --out app-release-signed.apk app-release-unsigned-zip.apk
|
||||||
# # move apk to dist folder
|
# move apk to dist folder
|
||||||
# - run: mkdir -p dist && mv android/app/build/outputs/apk/release/app-release-signed.apk dist/plebbit-$(node -e "console.log(require('./package.json').version)").apk
|
- run: mkdir -p dist && mv android/app/build/outputs/apk/release/app-release-signed.apk dist/plebchan-$(node -e "console.log(require('./package.json').version)").apk
|
||||||
# - run: ls dist
|
- run: ls dist
|
||||||
|
|
||||||
# # publish version release
|
# publish version release
|
||||||
# - uses: ncipollo/release-action@v1
|
- uses: ncipollo/release-action@v1
|
||||||
# with:
|
with:
|
||||||
# artifacts: 'dist/plebbit*.apk'
|
artifacts: 'dist/plebchan*.apk'
|
||||||
# token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
# replacesArtifacts: true
|
replacesArtifacts: true
|
||||||
# body: "Progressive web app mirrors:\n- https://plebchan.eth.limo\n- https://plebchan.eth.link\n- https://cloudflare-ipfs.com/ipns/plebchan.eth (insecure, no subdomain isolation)\n\nCLI client:\n- https://github.com/plebbit/plebbit-cli/releases/latest"
|
body: "Progressive web app mirrors:\n- https://plebchan.eth.limo\n- https://plebchan.eth.link\n- https://cloudflare-ipfs.com/ipns/plebchan.eth (insecure, no subdomain isolation)\n\nCLI client:\n- https://github.com/plebbit/plebbit-cli/releases/latest"
|
||||||
# allowUpdates: true
|
allowUpdates: true
|
||||||
|
|||||||
Reference in New Issue
Block a user