Test NSIS for tauri transition
This commit is contained in:
14
.github/workflows/build-publish-apps.yml
vendored
14
.github/workflows/build-publish-apps.yml
vendored
@ -174,11 +174,11 @@ jobs:
|
|||||||
VERSION_NO_V: ${{ needs.prepare-files.outputs.version }}
|
VERSION_NO_V: ${{ 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: |
|
||||||
$env:TAURI_DIR="out/tauri/${env:VERSION}/msi"
|
$env:TAURI_DIR="out/tauri/${env:VERSION}/nsis"
|
||||||
mkdir -p ${env:TAURI_DIR}
|
mkdir -p ${env:TAURI_DIR}
|
||||||
$env:MSI_FILE="${env:TAURI_DIR}/Zoo Modeling App_${env:VERSION_NO_V}_x64_en-US.msi.zip"
|
$env:OUT_FILE="${env:TAURI_DIR}/Zoo Modeling App_${env:VERSION_NO_V}_x64-setup.nsis.zip"
|
||||||
7z a -mm=Copy "${env:MSI_FILE}" ./out/*-x64-win.msi
|
7z a -mm=Copy "${env:OUT_FILE}" ./out/*-x64-win.exe
|
||||||
yarn tauri signer sign "${env:MSI_FILE}"
|
yarn tauri signer sign "${env:OUT_FILE}"
|
||||||
ls -R out
|
ls -R out
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
@ -196,7 +196,7 @@ jobs:
|
|||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
if: ${{ github.event_name == 'release' || github.event_name == 'schedule' }}
|
# if: ${{ github.event_name == 'release' || github.event_name == 'schedule' }}
|
||||||
needs: [prepare-files, build-apps]
|
needs: [prepare-files, build-apps]
|
||||||
env:
|
env:
|
||||||
VERSION_NO_V: ${{ needs.prepare-files.outputs.version }}
|
VERSION_NO_V: ${{ needs.prepare-files.outputs.version }}
|
||||||
@ -263,7 +263,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
TAURI_DIR=out/tauri/$VERSION
|
TAURI_DIR=out/tauri/$VERSION
|
||||||
DARWIN_SIG=`cat $TAURI_DIR/macos/*.app.tar.gz.sig`
|
DARWIN_SIG=`cat $TAURI_DIR/macos/*.app.tar.gz.sig`
|
||||||
WINDOWS_SIG=`cat $TAURI_DIR/msi/*.msi.zip.sig`
|
WINDOWS_SIG=`cat $TAURI_DIR/nsis/*.nsis.zip.sig`
|
||||||
RELEASE_DIR=https://${WEBSITE_DIR_TAURI}/${VERSION}
|
RELEASE_DIR=https://${WEBSITE_DIR_TAURI}/${VERSION}
|
||||||
jq --null-input \
|
jq --null-input \
|
||||||
--arg version "${VERSION}" \
|
--arg version "${VERSION}" \
|
||||||
@ -272,7 +272,7 @@ jobs:
|
|||||||
--arg darwin_sig "$DARWIN_SIG" \
|
--arg darwin_sig "$DARWIN_SIG" \
|
||||||
--arg darwin_url "$RELEASE_DIR/macos/${{ env.URL_CODED_NAME }}.app.tar.gz" \
|
--arg darwin_url "$RELEASE_DIR/macos/${{ env.URL_CODED_NAME }}.app.tar.gz" \
|
||||||
--arg windows_sig "$WINDOWS_SIG" \
|
--arg windows_sig "$WINDOWS_SIG" \
|
||||||
--arg windows_url "$RELEASE_DIR/msi/${{ env.URL_CODED_NAME }}_${VERSION_NO_V}_x64_en-US.msi.zip" \
|
--arg windows_url "$RELEASE_DIR/nsis/${{ env.URL_CODED_NAME }}_${VERSION_NO_V}_x64-setup.nsis.zip" \
|
||||||
'{
|
'{
|
||||||
"version": $version,
|
"version": $version,
|
||||||
"pub_date": $pub_date,
|
"pub_date": $pub_date,
|
||||||
|
@ -48,10 +48,10 @@ msi:
|
|||||||
nsis:
|
nsis:
|
||||||
oneClick: false
|
oneClick: false
|
||||||
perMachine: true
|
perMachine: true
|
||||||
allowToChangeInstallationDirectory: true
|
|
||||||
allowElevation: true
|
allowElevation: true
|
||||||
license: "LICENSE"
|
license: "LICENSE"
|
||||||
installerIcon: "assets/icon.ico"
|
installerIcon: "assets/icon.ico"
|
||||||
|
include: "build/installer.nsh"
|
||||||
|
|
||||||
linux:
|
linux:
|
||||||
artifactName: "${productName}-${version}-${arch}-${os}.${ext}"
|
artifactName: "${productName}-${version}-${arch}-${os}.${ext}"
|
||||||
|
8
installer.nsh
Normal file
8
installer.nsh
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
!macro preInit
|
||||||
|
SetRegView 64
|
||||||
|
WriteRegExpandStr HKLM "${INSTALL_REGISTRY_KEY}" InstallLocation "C:\Program Files\Zoo Modeling App"
|
||||||
|
WriteRegExpandStr HKCU "${INSTALL_REGISTRY_KEY}" InstallLocation "C:\Program Files\Zoo Modeling App"
|
||||||
|
SetRegView 32
|
||||||
|
WriteRegExpandStr HKLM "${INSTALL_REGISTRY_KEY}" InstallLocation "C:\Program Files\Zoo Modeling App"
|
||||||
|
WriteRegExpandStr HKCU "${INSTALL_REGISTRY_KEY}" InstallLocation "C:\Program Files\Zoo Modeling App"
|
||||||
|
!macroend
|
Reference in New Issue
Block a user