diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3f1937f..eb9dca1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,6 +4,7 @@ on: push: branches: - main + - "chore-*" permissions: contents: write diff --git a/forge.config.js b/forge.config.js index 12b2996..969bccf 100644 --- a/forge.config.js +++ b/forge.config.js @@ -1,4 +1,5 @@ require("dotenv").config(); +const pkg = require("./package.json") const { FusesPlugin } = require("@electron-forge/plugin-fuses"); const { FuseV1Options, FuseVersion } = require("@electron/fuses"); @@ -32,9 +33,11 @@ module.exports = { name: "@electron-forge/maker-wix", config: { name: "GPGBridge", + language: 1033, manufacturer: "Unchained", - exe: "GPGBridge.exe", + //exe: "GPGBridge.exe", icon: "./icons/win/icon.ico", + version: pkg.version, }, }, { diff --git a/main.js b/main.js index 2b4ebb2..20ab030 100644 --- a/main.js +++ b/main.js @@ -1,4 +1,5 @@ const { app, BrowserWindow, Tray, Menu } = require("electron"); +if (require('electron-squirrel-startup')) app.quit(); const path = require("path"); const WebSocket = require("ws"); const { execFile, spawn } = require("child_process"); diff --git a/package.json b/package.json index 57eaab2..b4f6667 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "gpg-bridge", - "version": "0.0.7", + "version": "0.0.8", "description": "A very basic bridge to gpg over websockets", "license": "MIT", "main": "main.js",