···
3
3
push:
4
4
branches:
5
5
- '*'
6
6
-
tags-ignore:
7
7
-
- '*'
8
6
workflow_dispatch:
9
7
env:
10
8
CARGO_TERM_COLOR: always
···
46
44
matrix:
47
45
include:
48
46
- { name: arm64, arch: aarch64, tauri_target: aarch64 }
49
49
-
- { name: x64, arch: x86_64, tauri_target: x86_64 }
47
47
+
# - { name: x64, arch: x86_64, tauri_target: x86_64 }
50
48
steps:
51
49
- name: Checkout repository
52
50
uses: actions/checkout@v4
···
98
96
projectPath: mobile
99
97
uploadWorkflowArtifacts: true
100
98
mobile: android
101
101
-
args: --apk --split-per-abi --target ${{ matrix.tauri_target }}
99
99
+
args: --apk --split-per-abi --target ${{ matrix.tauri_target }} --config '{"version":"0.0.1"}'
···
101
101
base64 -d <<< "${{ secrets.ANDROID_KEY_BASE64 }}" > $RUNNER_TEMP/keystore.jks
102
102
echo "storeFile=$RUNNER_TEMP/keystore.jks" >> keystore.properties
103
103
104
104
+
- name: Get version
105
105
+
run: echo "APP_VERSION=$(jq -r '.version' package.json)" >> $GITHUB_ENV
106
106
+
104
107
- name: Build
105
108
# uploadWorkflowArtifacts and mobile are not released
106
106
-
uses: tauri-apps/tauri-action@a1b01e690374452a209dd44f6de089dda9003d3d
109
109
+
# uses: tauri-apps/tauri-action@a1b01e690374452a209dd44f6de089dda9003d3d
110
110
+
uses: probablykasper/tauri-action@ed2469ebf97aca60a033d455c4f2c28c65375fa3
107
111
env:
108
112
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
109
113
with:
110
114
projectPath: mobile
111
115
mobile: android
112
112
-
tagName: ${{ github.ref_name }}
113
113
-
releaseName: ${{ github.ref_name }}
116
116
+
tagName: v${{ env.APP_VERSION }}
117
117
+
releaseName: ${{ env.APP_VERSION }}
114
118
releaseDraft: true
115
115
-
args: --apk --split-per-abi --target ${{ matrix.tauri_target }}
119
119
+
releaseAssetNamePattern: '[name]-v[version]-[platform]-[arch][ext]'
120
120
+
args: --apk --split-per-abi --target ${{ matrix.tauri_target }} --config '{"version":"${{ env.APP_VERSION }}"}'
···
1
1
{
2
2
"name": "ferrum",
3
3
-
"version": "0.1.0",
4
4
-
"description": "",
5
3
"type": "module",
6
4
"scripts": {
7
5
"dev": "tauri dev",
···
1
1
{
2
2
"$schema": "https://schema.tauri.app/config/2",
3
3
"productName": "Ferrum",
4
4
-
"version": "0.1.0",
5
4
"identifier": "space.kasper.ferrum",
6
5
"build": {
7
6
"beforeDevCommand": "npm run dev:web",