Skip to content

Commit

Permalink
fix build process
Browse files Browse the repository at this point in the history
  • Loading branch information
vorujack committed Aug 20, 2024
1 parent 135a8b6 commit 836e97d
Show file tree
Hide file tree
Showing 8 changed files with 41 additions and 40 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/release-android.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,32 +39,32 @@ jobs:

- name: Build Minotaur JS app and update capacitor
shell: bash
run: npm run sync
run: npm run sync --prefix apps/wallet/

- name: Setup Android build environment
uses: android-actions/setup-android@v3

- name: Grant execute permission for gradlew
run: chmod +x ./android/gradlew
run: chmod +x .apps/wallet/android/gradlew

- name: Update AndroidManifest.xml
uses: damienaicheh/[email protected]
with:
android-manifest-path: './android/app/src/main/AndroidManifest.xml'
android-manifest-path: '.apps/wallet/android/app/src/main/AndroidManifest.xml'
version-code: ${{ env.NUMBER_OF_COMMITS }}
version-name: '${{ env.MAJOR }}.${{ env.MINOR }}.${{ env.PATCH }}${{ env.PRE_RELEASE }}'
print-file: true

- name: Update gradle version for Android
uses: damienaicheh/[email protected]
with:
build-gradle-path: './android/app/build.gradle'
build-gradle-path: '.apps/wallet/android/app/build.gradle'
version-code: ${{ env.NUMBER_OF_COMMITS }}
version-name: '${{ env.MAJOR }}.${{ env.MINOR }}.${{ env.PATCH }}${{ env.PRE_RELEASE }}'
print-file: true

- name: Build app bundle
working-directory: android
working-directory: apps/wallet/android
run: ./gradlew clean app:assembleRelease

- uses: r0adkll/sign-android-release@v1
Expand All @@ -74,7 +74,7 @@ jobs:
env:
BUILD_TOOLS_VERSION: 34.0.0
with:
releaseDirectory: android/app/build/outputs/apk/release
releaseDirectory: apps/wallet/android/app/build/outputs/apk/release
signingKeyBase64: ${{ secrets.SIGNING_KEYSTORE }}
alias: ${{ secrets.SIGNING_KEY_ALIAS }}
keyStorePassword: ${{ secrets.SIGNING_STORE_PASSWORD }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release-desktop.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@ jobs:

- name: Build Minotaur JS app and update capacitor
shell: bash
run: npm run sync:electron
run: npm run sync:electron --prefix apps/wallet/

- name: Remove icns from assets
if: matrix.platform != 'MacOS'
run: rm electron/assets/appIcon.icns
run: rm apps/wallet/electron/assets/appIcon.icns

- name: Build Electron
working-directory: ./electron
working-directory: .apps/wallet/electron
run: npm i; npm run electron:make

- name: Upload Executable File to release
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"images" : [
"images": [
{
"filename" : "[email protected]",
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"
"filename": "[email protected]",
"idiom": "universal",
"platform": "ios",
"size": "1024x1024"
}
],
"info" : {
"author" : "xcode",
"version" : 1
"info": {
"author": "xcode",
"version": 1
}
}
8 changes: 4 additions & 4 deletions apps/wallet/ios/App/App/Assets.xcassets/Contents.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"info" : {
"version" : 1,
"author" : "xcode"
"info": {
"version": 1,
"author": "xcode"
}
}
}
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
{
"images" : [
"images": [
{
"idiom" : "universal",
"filename" : "splash-2732x2732-2.png",
"scale" : "1x"
"idiom": "universal",
"filename": "splash-2732x2732-2.png",
"scale": "1x"
},
{
"idiom" : "universal",
"filename" : "splash-2732x2732-1.png",
"scale" : "2x"
"idiom": "universal",
"filename": "splash-2732x2732-1.png",
"scale": "2x"
},
{
"idiom" : "universal",
"filename" : "splash-2732x2732.png",
"scale" : "3x"
"idiom": "universal",
"filename": "splash-2732x2732.png",
"scale": "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
"info": {
"version": 1,
"author": "xcode"
}
}
}
2 changes: 1 addition & 1 deletion apps/wallet/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@
}
},
"include": ["src"],
"references": [{ "path": "./tsconfig.node.json"}]
"references": [{ "path": "./tsconfig.node.json" }]
}
4 changes: 1 addition & 3 deletions apps/wallet/tsconfig.node.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,5 @@
"moduleResolution": "node",
"allowSyntheticDefaultImports": true
},
"include": [
"vite.config.ts"
]
"include": ["vite.config.ts"]
}
5 changes: 4 additions & 1 deletion cli/update_version.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ async function main() {
if (process.argv.length < 3) {
throw Error('No version specified');
}
for (let file_path of ['package.json', 'electron/package.json']) {
for (let file_path of [
'apps/wallet/package.json',
'apps/wallet/electron/package.json',
]) {
let data = fs.readFileSync(file_path, 'utf8');
let root = JSON.parse(data);
root.version = process.argv[2];
Expand Down

0 comments on commit 836e97d

Please sign in to comment.