Skip to content

Commit 00f18f8

Browse files
committed
Update release workflows
1 parent fe7e532 commit 00f18f8

File tree

3 files changed

+17
-7
lines changed

3 files changed

+17
-7
lines changed

.github/workflows/release-capacitor.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Build Capacitor Release
22

3+
env:
4+
ANDROID_SDK_VERSION: "35.0.0"
5+
36
on:
47
push:
58
tags:
@@ -27,8 +30,8 @@ jobs:
2730

2831
- name: Install Android SDK build tools
2932
run: |
30-
sdkmanager "build-tools;34.0.0"
31-
echo "$ANDROID_SDK_ROOT/build-tools/34.0.0" >> $GITHUB_PATH
33+
sdkmanager "build-tools;${{env.ANDROID_SDK_VERSION}}"
34+
echo "$ANDROID_SDK_ROOT/build-tools/${{env.ANDROID_SDK_VERSION}}" >> $GITHUB_PATH
3235
3336
- name: Get Keystore
3437
run: |
@@ -38,7 +41,7 @@ jobs:
3841
- name: Setup Node.js
3942
uses: actions/setup-node@v4
4043
with:
41-
node-version: 20.x
44+
node-version: 20
4245

4346
- name: Install dependencies
4447
run: npm install

.github/workflows/release-electron.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,16 @@ jobs:
1919
- name: Setup Node.js
2020
uses: actions/setup-node@v4
2121
with:
22-
node-version: 20.x
22+
node-version: 20
2323

24-
- name: Install dependencies
25-
run: npm install
24+
- name: Install web dependencies
25+
run: npm install --workspace=web
26+
27+
- name: Install desktop dependencies
28+
run: npm install --workspace=desktop
29+
30+
- name: Rebuild native modules
31+
run: npm run rebuild-native --workspace=desktop
2632

2733
- name: Build Electron App
2834
run: |

desktop/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"type": "module",
77
"scripts": {
88
"dev": "electron .",
9-
"build": "electron-forge package"
9+
"build": "electron-forge package",
10+
"rebuild-native": "../node_modules/.bin/electron-rebuild -v 36.1.0"
1011
},
1112
"dependencies": {
1213
"electron-serve": "^2.1.1",

0 commit comments

Comments
 (0)