This commit is contained in:
Troplo 2022-08-03 21:26:42 +10:00
parent 3191b665a3
commit c7d97ee57b
3 changed files with 19 additions and 21 deletions

View file

@ -31,4 +31,4 @@ jobs:
release: ${{ startsWith(github.ref, 'refs/tags/v') }} release: ${{ startsWith(github.ref, 'refs/tags/v') }}
package_root: "./frontend" package_root: "./frontend"
use_vue_cli: true use_vue_cli: true
args: "-c.snap.publish=github" args: "-c.snap.publish=github --publish always"

View file

@ -3,34 +3,16 @@
"version": "1.0.15", "version": "1.0.15",
"private": true, "private": true,
"author": "Troplo <troplo@troplo.com>", "author": "Troplo <troplo@troplo.com>",
"build": {
"appId": "com.troplo.colubrina",
"win": {
"publish": [
"github"
]
},
"linux": {
"publish": [
"github"
]
},
"mac": {
"publish": [
"github"
]
}
},
"scripts": { "scripts": {
"serve": "vue-cli-service serve", "serve": "vue-cli-service serve",
"build": "vue-cli-service build", "build": "vue-cli-service build",
"lint": "vue-cli-service lint", "lint": "vue-cli-service lint",
"electron:build": "vue-cli-service electron:build -c.snap.publish=github", "electron:build": "vue-cli-service electron:build",
"electron:serve": "vue-cli-service electron:serve", "electron:serve": "vue-cli-service electron:serve",
"postinstall": "patch-package && electron-builder install-app-deps", "postinstall": "patch-package && electron-builder install-app-deps",
"postuninstall": "electron-builder install-app-deps" "postuninstall": "electron-builder install-app-deps"
}, },
"main": "./src/background.js", "main": "./background.js",
"repository": "https://github.com/Troplo/Colubrina", "repository": "https://github.com/Troplo/Colubrina",
"dependencies": { "dependencies": {
"@babel/preset-env": "^7.17.10", "@babel/preset-env": "^7.17.10",

View file

@ -89,6 +89,22 @@ module.exports = {
}) })
}, },
productionSourceMap: true, productionSourceMap: true,
pluginOptions: {
electronBuilder: {
builderOptions: {
appId: "com.troplo.colubrina",
win: {
publish: ["github"]
},
linux: {
publish: ["github"]
},
mac: {
publish: ["github"]
}
}
}
},
configureWebpack: { configureWebpack: {
plugins plugins
}, },