Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebGAL Terre android version #370

Open
wants to merge 10 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 45 additions & 1 deletion .github/workflows/build-terre.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ jobs:
run: sh release-linux-arm64.sh
- name: Compress
run: 7z a -tzip release/WebGAL_Terre_Linux_Arm64.zip release/*

- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
Expand Down Expand Up @@ -122,3 +121,48 @@ jobs:
with:
name: WebGAL_Terre_Windows_Setup
path: bundle/WebGal_Terre_Setup.exe
build-android:
name: Build Android APK
runs-on: ubuntu-latest
env:
KEYSTORE: ${{ secrets.KEYSTORE }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version-file: package.json
cache: 'yarn'
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: zulu
java-version: 21
- name: Decode and save keystore
if: ${{ env.KEYSTORE != '' }}
run: |
echo "${{ secrets.KEYSTORE }}" | base64 --decode > packages/terre-android/app/keystore.jks
- name: Save key.properties
if: ${{ env.KEYSTORE != '' }}
run: |
echo "storePassword=${{ secrets.STORE_PASSWORD }}" >> packages/terre-android/key.properties
echo "keyPassword=${{ secrets.KEY_PASSWORD }}" >> packages/terre-android/key.properties
echo "keyAlias=${{ secrets.KEY_ALIAS }}" >> packages/terre-android/key.properties
echo "storeFile=keystore.jks" >> packages/terre-android/key.properties
- name: Build
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: sh release-android.sh
- name: Upload Release Artifact
if: ${{ env.KEYSTORE != '' }}
uses: actions/upload-artifact@v4
with:
name: WebGAL_Terre_Android
path: release/WebGAL_Terre_Android.apk
- name: Upload Debug Artifact
if: ${{ env.KEYSTORE == '' }}
uses: actions/upload-artifact@v4
with:
name: WebGAL_Terre_Android_debug
path: release/WebGAL_Terre_Android_debug.apk
14 changes: 13 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
release:
name: Release
runs-on: ubuntu-latest
needs: ['build-linux','build-arm64','build-mac','build-windows','build-windows-nsis']
needs: ['build-linux','build-arm64','build-mac','build-windows','build-windows-nsis','build-android']
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -78,3 +78,15 @@ jobs:
asset_path: WebGAL_Terre_Windows_Setup/WebGal_Terre_Setup.exe
asset_name: WebGAL_Terre_Windows_Setup_${{ github.ref_name }}.exe
asset_content_type: application/vnd.microsoft.portable-executable

- name: Upload Android Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
KEYSTORE: ${{ secrets.KEYSTORE }}
if: ${{ env.KEYSTORE != '' }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: WebGAL_Terre_Android/WebGAL_Terre_Android.apk
asset_name: WebGAL_Terre_Android_${{ github.ref_name }}.apk
asset_content_type: application/vnd.android.package-archive
24 changes: 24 additions & 0 deletions packages/terre-android/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
*.iml
.gradle
/local.properties
/.idea/caches
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
/.idea/navEditor.xml
/.idea/assetWizardSettings.xml
.DS_Store
/build
/captures
.externalNativeBuild
.cxx
local.properties
app/libnode/bin
app/libnode/include
app/libnode/nodejs-mobile-*
app/src/main/assets/terre

# key
key.properties
**/*.keystore
**/*.jks
Loading