From 0faca5c9a188771ddb8a886d97e17e6be0f40498 Mon Sep 17 00:00:00 2001 From: Zamitto <167933696+zamitto@users.noreply.github.com> Date: Wed, 5 Jun 2024 23:44:08 -0300 Subject: [PATCH] build portable --- .github/workflows/build.yml | 1 + electron-builder.yml | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c9094117..14cc8e0d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -44,6 +44,7 @@ jobs: name: Build-${{ matrix.os }} path: | dist/win-unpacked/** + dist/*portable.exe dist/*.zip dist/*.dmg dist/*.deb diff --git a/electron-builder.yml b/electron-builder.yml index 31ac3158..7fc7c90a 100644 --- a/electron-builder.yml +++ b/electron-builder.yml @@ -19,6 +19,9 @@ asarUnpack: win: executableName: Hydra requestedExecutionLevel: requireAdministrator + target: + - nsis + - portable nsis: artifactName: ${name}-${version}-setup.${ext} shortcutName: ${productName} @@ -26,6 +29,9 @@ nsis: createDesktopShortcut: always oneClick: false allowToChangeInstallationDirectory: true +portable: + artifactName: ${name}-${version}-portable.${ext} + requestExecutionLevel: admin mac: entitlementsInherit: build/entitlements.mac.plist extendInfo: