No more universal for mac, last_download.json endpoint
This commit is contained in:
126
.github/workflows/build-publish-apps.yml
vendored
126
.github/workflows/build-publish-apps.yml
vendored
@ -140,10 +140,6 @@ jobs:
|
|||||||
# if: ${{ env.BUILD_RELEASE == 'false' }}
|
# if: ${{ env.BUILD_RELEASE == 'false' }}
|
||||||
run: yarn electron-builder --config --publish always
|
run: yarn electron-builder --config --publish always
|
||||||
|
|
||||||
# - name: Publish the app (dry run)
|
|
||||||
# if: ${{ env.BUILD_RELEASE == 'true' }}
|
|
||||||
# run: "yarn electron-forge publish --dry-run"
|
|
||||||
|
|
||||||
- name: List artifacts in out/
|
- name: List artifacts in out/
|
||||||
run: ls -R out
|
run: ls -R out
|
||||||
|
|
||||||
@ -155,9 +151,8 @@ jobs:
|
|||||||
# VERSION: ${{ github.event_name == 'release' && format('v{0}', needs.prepare-files.outputs.version) || needs.prepare-files.outputs.version }}
|
# VERSION: ${{ github.event_name == 'release' && format('v{0}', needs.prepare-files.outputs.version) || needs.prepare-files.outputs.version }}
|
||||||
VERSION: ${{ format('v{0}', needs.prepare-files.outputs.version) }}
|
VERSION: ${{ format('v{0}', needs.prepare-files.outputs.version) }}
|
||||||
run: |
|
run: |
|
||||||
# for ARCH in arm64 x64; do
|
for ARCH in arm64 x64; do
|
||||||
for ARCH in universal; do
|
TAURI_DIR=out/tauri/$VERSION/macos/$ARCH
|
||||||
TAURI_DIR=out/tauri/$VERSION/macos
|
|
||||||
mkdir -p $TAURI_DIR
|
mkdir -p $TAURI_DIR
|
||||||
unzip out/*-$ARCH-mac.zip -d $TAURI_DIR
|
unzip out/*-$ARCH-mac.zip -d $TAURI_DIR
|
||||||
tar -czvf "$TAURI_DIR/Zoo Modeling App.app.tar.gz" -C $TAURI_DIR "Zoo Modeling App.app"
|
tar -czvf "$TAURI_DIR/Zoo Modeling App.app.tar.gz" -C $TAURI_DIR "Zoo Modeling App.app"
|
||||||
@ -191,6 +186,8 @@ jobs:
|
|||||||
|
|
||||||
# TODO: add the 'Build for Mac TestFlight (nightly)' stage back
|
# TODO: add the 'Build for Mac TestFlight (nightly)' stage back
|
||||||
|
|
||||||
|
# TODO: add the updater tests back
|
||||||
|
|
||||||
|
|
||||||
publish-apps-release:
|
publish-apps-release:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
@ -229,6 +226,76 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: out-ubuntu-22.04
|
name: out-ubuntu-22.04
|
||||||
path: out
|
path: out
|
||||||
|
|
||||||
|
- name: Generate the download static endpoint
|
||||||
|
run: |
|
||||||
|
RELEASE_DIR=https://${WEBSITE_DIR}/${VERSION}
|
||||||
|
jq --null-input \
|
||||||
|
--arg version "${VERSION}" \
|
||||||
|
--arg pub_date "${PUB_DATE}" \
|
||||||
|
--arg notes "${NOTES}" \
|
||||||
|
--arg mac_arm64_url "$RELEASE_DIR/${{ env.URL_CODED_NAME }}-${VERSION_NO_V}-arm64-mac.dmg" \
|
||||||
|
--arg mac_x64_url "$RELEASE_DIR/${{ env.URL_CODED_NAME }}-${VERSION_NO_V}-x64-mac.dmg" \
|
||||||
|
--arg windows_arm64_url "$RELEASE_DIR/${{ env.URL_CODED_NAME }}-${VERSION_NO_V}_arm64_win.msi" \
|
||||||
|
--arg windows_x64_url "$RELEASE_DIR/${{ env.URL_CODED_NAME }}-${VERSION_NO_V}_x64_win.msi" \
|
||||||
|
'{
|
||||||
|
"version": $version,
|
||||||
|
"pub_date": $pub_date,
|
||||||
|
"notes": $notes,
|
||||||
|
"platforms": {
|
||||||
|
"dmg-arm64": {
|
||||||
|
"url": $mac_arm64_url
|
||||||
|
},
|
||||||
|
"dmg-x64": {
|
||||||
|
"url": $mac_x64_url
|
||||||
|
},
|
||||||
|
"msi-arm64": {
|
||||||
|
"url": $windows_arm64_url
|
||||||
|
}
|
||||||
|
"msi-x64": {
|
||||||
|
"url": $windows_x64_url
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}' > last_download.json
|
||||||
|
cat last_download.json
|
||||||
|
|
||||||
|
- name: Generate the update static endpoint for tauri
|
||||||
|
run: |
|
||||||
|
TAURI_DIR=out/tauri/$VERSION
|
||||||
|
MAC_ARM64_SIG=`cat $TAURI_DIR/macos/arm64/*.app.tar.gz.sig`
|
||||||
|
MAC_X64_SIG=`cat $TAURI_DIR/macos/x64/*.app.tar.gz.sig`
|
||||||
|
WINDOWS_SIG=`cat $TAURI_DIR/nsis/*.nsis.zip.sig`
|
||||||
|
RELEASE_DIR=https://${WEBSITE_DIR_TAURI}/${VERSION}
|
||||||
|
jq --null-input \
|
||||||
|
--arg version "${VERSION}" \
|
||||||
|
--arg pub_date "${PUB_DATE}" \
|
||||||
|
--arg notes "${NOTES}" \
|
||||||
|
--arg mac_arm64_sig "$MAC_ARM64_SIG" \
|
||||||
|
--arg mac_arm64_url "$RELEASE_DIR/macos/arm64/${{ env.URL_CODED_NAME }}.app.tar.gz" \
|
||||||
|
--arg mac_x64_sig "$MAC_X64_SIG" \
|
||||||
|
--arg mac_x64_url "$RELEASE_DIR/macos/x64/${{ env.URL_CODED_NAME }}.app.tar.gz" \
|
||||||
|
--arg windows_sig "$WINDOWS_SIG" \
|
||||||
|
--arg windows_url "$RELEASE_DIR/nsis/${{ env.URL_CODED_NAME }}_${VERSION_NO_V}_x64-setup.nsis.zip" \
|
||||||
|
'{
|
||||||
|
"version": $version,
|
||||||
|
"pub_date": $pub_date,
|
||||||
|
"notes": $notes,
|
||||||
|
"platforms": {
|
||||||
|
"darwin-x86_64": {
|
||||||
|
"signature": $mac_x64_sig,
|
||||||
|
"url": $mac_x64_url
|
||||||
|
},
|
||||||
|
"darwin-aarch64": {
|
||||||
|
"signature": $mac_arm64_sig,
|
||||||
|
"url": $mac_arm64_url
|
||||||
|
},
|
||||||
|
"windows-x86_64": {
|
||||||
|
"signature": $windows_sig,
|
||||||
|
"url": $windows_url
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}' > last_update.json
|
||||||
|
cat last_update.json
|
||||||
|
|
||||||
- name: List artifacts
|
- name: List artifacts
|
||||||
run: "ls -R out"
|
run: "ls -R out"
|
||||||
@ -259,40 +326,11 @@ jobs:
|
|||||||
parent: false
|
parent: false
|
||||||
destination: ${{ env.BUCKET_DIR }}
|
destination: ${{ env.BUCKET_DIR }}
|
||||||
|
|
||||||
- name: Generate the update static endpoint for tauri
|
- name: Upload download endpoint to public bucket
|
||||||
run: |
|
uses: google-github-actions/upload-cloud-storage@v2.1.3
|
||||||
TAURI_DIR=out/tauri/$VERSION
|
with:
|
||||||
DARWIN_SIG=`cat $TAURI_DIR/macos/*.app.tar.gz.sig`
|
path: last_download.json
|
||||||
WINDOWS_SIG=`cat $TAURI_DIR/nsis/*.nsis.zip.sig`
|
destination: ${{ env.BUCKET_DIR }}
|
||||||
RELEASE_DIR=https://${WEBSITE_DIR_TAURI}/${VERSION}
|
|
||||||
jq --null-input \
|
|
||||||
--arg version "${VERSION}" \
|
|
||||||
--arg pub_date "${PUB_DATE}" \
|
|
||||||
--arg notes "${NOTES}" \
|
|
||||||
--arg darwin_sig "$DARWIN_SIG" \
|
|
||||||
--arg darwin_url "$RELEASE_DIR/macos/${{ env.URL_CODED_NAME }}.app.tar.gz" \
|
|
||||||
--arg windows_sig "$WINDOWS_SIG" \
|
|
||||||
--arg windows_url "$RELEASE_DIR/nsis/${{ env.URL_CODED_NAME }}_${VERSION_NO_V}_x64-setup.nsis.zip" \
|
|
||||||
'{
|
|
||||||
"version": $version,
|
|
||||||
"pub_date": $pub_date,
|
|
||||||
"notes": $notes,
|
|
||||||
"platforms": {
|
|
||||||
"darwin-x86_64": {
|
|
||||||
"signature": $darwin_sig,
|
|
||||||
"url": $darwin_url
|
|
||||||
},
|
|
||||||
"darwin-aarch64": {
|
|
||||||
"signature": $darwin_sig,
|
|
||||||
"url": $darwin_url
|
|
||||||
},
|
|
||||||
"windows-x86_64": {
|
|
||||||
"signature": $windows_sig,
|
|
||||||
"url": $windows_url
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}' > last_update.json
|
|
||||||
cat last_update.json
|
|
||||||
|
|
||||||
- name: Upload release files to public bucket for tauri
|
- name: Upload release files to public bucket for tauri
|
||||||
uses: google-github-actions/upload-cloud-storage@v2.1.1
|
uses: google-github-actions/upload-cloud-storage@v2.1.1
|
||||||
@ -308,12 +346,6 @@ jobs:
|
|||||||
path: last_update.json
|
path: last_update.json
|
||||||
destination: ${{ env.BUCKET_DIR_TAURI }}
|
destination: ${{ env.BUCKET_DIR_TAURI }}
|
||||||
|
|
||||||
# - name: Upload download endpoint to public bucket
|
|
||||||
# uses: google-github-actions/upload-cloud-storage@v2.1.3
|
|
||||||
# with:
|
|
||||||
# path: last_download.json
|
|
||||||
# destination: ${{ env.BUCKET_DIR }}
|
|
||||||
|
|
||||||
- name: Upload release files to Github
|
- name: Upload release files to Github
|
||||||
if: ${{ github.event_name == 'release' }}
|
if: ${{ github.event_name == 'release' }}
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
|
|||||||
@ -13,14 +13,12 @@ mac:
|
|||||||
target:
|
target:
|
||||||
- target: dmg
|
- target: dmg
|
||||||
arch:
|
arch:
|
||||||
- universal
|
- x64
|
||||||
# - x64
|
- arm64
|
||||||
# - arm64
|
|
||||||
- target: zip
|
- target: zip
|
||||||
arch:
|
arch:
|
||||||
- universal
|
- x64
|
||||||
# - x64
|
- arm64
|
||||||
# - arm64
|
|
||||||
notarize:
|
notarize:
|
||||||
teamId: 92H8YB3B95
|
teamId: 92H8YB3B95
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user