Skip to content

Commit

Permalink
Merge branch 'main' into kurt-circle-rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
Irev-Dev authored Sep 16, 2024
2 parents b28c99e + a2133d8 commit 89f717b
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 11 deletions.
34 changes: 32 additions & 2 deletions .github/workflows/build-test-publish-apps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ jobs:
VERSION=$(date +'%-y.%-m.%-d') yarn bump-jsons
# TODO: see if we need to inject updater nightly URL here https://dl.zoo.dev/releases/modeling-app/nightly/last_update.json
# TODO: see if we ned to add updater test URL here https://dl.zoo.dev/releases/modeling-app/updater-test/last_update.json

- uses: actions/upload-artifact@v3
with:
Expand All @@ -64,6 +63,17 @@ jobs:
- id: export_version
run: echo "version=`cat package.json | jq -r '.version'`" >> "$GITHUB_OUTPUT"

- name: Prepare electron-builder.yml file for updater test
if: ${{ env.CUT_RELEASE_PR == 'true' }}
run: |
yq -i '.publish[0].url = "https://dl.zoo.dev/releases/modeling-app/updater-test"' electron-builder.yml
- uses: actions/upload-artifact@v3
with:
name: prepared-files-updater-test
path: |
electron-builder.yml
build-apps:
needs: [prepare-files]
Expand Down Expand Up @@ -149,7 +159,27 @@ jobs:
# TODO: add the 'Build for Mac TestFlight (nightly)' stage back

# TODO: add the updater tests back
- uses: actions/download-artifact@v3
if: ${{ env.CUT_RELEASE_PR == 'true' }}
name: prepared-files-updater-test

- name: Copy updated electron-builder.yml file for updater test
if: ${{ env.CUT_RELEASE_PR == 'true' }}
run: |
ls -R prepared-files-updater-test
cp prepared-files-updater-test/electron-builder.yml electron-builder.yml
- name: Build the app (updater-test)
if: ${{ env.CUT_RELEASE_PR == 'true' }}
run: yarn electron-builder --config ${{ env.BUILD_RELEASE && '--publish always' || '' }}

- uses: actions/upload-artifact@v3
if: ${{ env.CUT_RELEASE_PR == 'true' }}
with:
name: updater-test-${{ matrix.os }}
path: |
out/Zoo*.*
out/latest*.yml
publish-apps-release:
Expand Down
10 changes: 1 addition & 9 deletions electron-builder.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
appId: dev.zoo.modeling-app

directories:
output: out
buildResources: assets

files:
- .vite/**

mac:
category: public.app-category.developer-tools
artifactName: "${productName}-${version}-${arch}-${os}.${ext}"
Expand All @@ -28,7 +25,6 @@ mac:
description: Zoo KCL File
role: Editor
rank: Owner

win:
artifactName: "${productName}-${version}-${arch}-${os}.${ext}"
target:
Expand All @@ -43,26 +39,23 @@ win:
signingHashAlgorithms:
- sha256
sign: "./sign-win.js"
publisherName: "KittyCAD Inc" # needs to be exactly like on Digicert
publisherName: "KittyCAD Inc" # needs to be exactly like on Digicert
icon: "assets/icon.ico"
fileAssociations:
- ext: kcl
name: kcl
mimeType: text/vnd.zoo.kcl
description: Zoo KCL File
role: Editor

msi:
oneClick: false
perMachine: true

nsis:
oneClick: false
perMachine: true
allowElevation: true
installerIcon: "assets/icon.ico"
include: "./installer.nsh"

linux:
artifactName: "${productName}-${version}-${arch}-${os}.${ext}"
target:
Expand All @@ -76,7 +69,6 @@ linux:
mimeType: text/vnd.zoo.kcl
description: Zoo KCL File
role: Editor

publish:
- provider: generic
url: https://dl.zoo.dev/releases/modeling-app
Expand Down

0 comments on commit 89f717b

Please sign in to comment.