From 12309754fe28e8027d3bf264c0905e4090709ecb Mon Sep 17 00:00:00 2001 From: Evan Simkowitz Date: Thu, 29 Feb 2024 12:23:44 -0800 Subject: [PATCH] test flatpak --- .github/workflows/build-helper.yml | 5 +---- forge.config.js | 26 ++++++++++++++++++++++---- 2 files changed, 23 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build-helper.yml b/.github/workflows/build-helper.yml index 4acd9710b..cff89b42d 100644 --- a/.github/workflows/build-helper.yml +++ b/.github/workflows/build-helper.yml @@ -60,13 +60,10 @@ jobs: run: yarn --frozen-lockfile - name: Build run: ./scripthaus/scripthaus run ${{ matrix.scripthaus }} - - name: Tree - if: matrix.platform == 'linux' - run: tree out/make - uses: actions/upload-artifact@v4 with: name: waveterm-build-${{ matrix.platform }}-${{ matrix.arch }} - path: out/make/zip/${{ matrix.platform }}/${{ matrix.arch }}/*.zip + path: out/make/**/* retention-days: 2 upload: name: "Upload Builds" diff --git a/forge.config.js b/forge.config.js index 98eebf32b..f93b6334a 100644 --- a/forge.config.js +++ b/forge.config.js @@ -1,3 +1,4 @@ +const pkg = require("./package.json"); let AllowedFirstParts = { "package.json": true, dist: true, @@ -44,8 +45,6 @@ function ignoreFn(path) { return false; } -const appName = "Wave"; - module.exports = { packagerConfig: { ignore: ignoreFn, @@ -62,7 +61,7 @@ module.exports = { name: "@electron-forge/maker-deb", config: { options: { - bin: appName, + bin: pkg.productName, }, }, }, @@ -70,9 +69,28 @@ module.exports = { name: "@electron-forge/maker-rpm", config: { options: { - bin: appName, + bin: pkg.productName, }, }, }, + { + name: "@electron-forge/maker-flatpak", + config: { + options: { + bin: pkg.productName, + mimeType: ["text/plain"], + }, + }, + }, + // { + // name: "@electron-forge/maker-snap", + // config: { + // features: { + // audio: true, + // mpris: "com.commandline.waveterm", + // webgl: true, + // }, + // }, + // }, ], };