From f1002082f207f2f56f445e1ddb6ae7ceca4908bd Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Thu, 6 Feb 2020 14:14:02 +0300 Subject: [PATCH] appx build --- .github/workflows/windows.yml | 8 ++++++++ scripts/build-windows.js | 3 +-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 3258f862..07a459ff 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -40,6 +40,8 @@ jobs: mv dist/*-setup.exe artifact-setup/ mkdir artifact-portable mv dist/*-portable.exe artifact-portable/ + mkdir artifact-appx + mv dist/*.appx artifact-appx/ - uses: actions/upload-artifact@master name: Upload installer @@ -52,3 +54,9 @@ jobs: with: name: Portable build path: artifact-portable + + - uses: actions/upload-artifact@master + name: Upload APPX + with: + name: Portable build + path: artifact-appx diff --git a/scripts/build-windows.js b/scripts/build-windows.js index 50065cd7..af424ff6 100755 --- a/scripts/build-windows.js +++ b/scripts/build-windows.js @@ -3,11 +3,10 @@ const builder = require('electron-builder').build const vars = require('./vars') const isTag = (process.env.GITHUB_REF || process.env.BUILD_SOURCEBRANCH || '').startsWith('refs/tags/') -const isCI = !!process.env.GITHUB_REF builder({ dir: true, - win: ['nsis', 'portable'], + win: ['nsis', 'portable', 'appx'], config: { extraMetadata: { version: vars.version,