From 07a67135be09a1009e189d1ab19ee9a45732231d Mon Sep 17 00:00:00 2001 From: Leibniz Li Date: Tue, 2 Jan 2024 21:49:37 +0800 Subject: [PATCH] remove macos release --- .github/workflows/release.yml | 14 -------------- forge.config.js | 9 ++++++++- package.json | 3 ++- 3 files changed, 10 insertions(+), 16 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4e94fd3..9feab3d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,20 +20,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: npm run publish - publish_on_mac: - runs-on: macos-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@master - with: - node-version: 18.17.1 - - name: install dependencies - run: npm install - - name: publish - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: npm run publish - publish_on_win: runs-on: windows-latest steps: diff --git a/forge.config.js b/forge.config.js index 8735a03..209518c 100644 --- a/forge.config.js +++ b/forge.config.js @@ -11,7 +11,14 @@ module.exports = { }, { name: '@electron-forge/maker-zip', - platforms: ["darwin"], + platforms: [], + }, + { + name: '@electron-forge/maker-dmg', + config: { + icon: './src/images/icon.icns', + format: 'ULFO' + } }, { name: '@electron-forge/maker-deb', diff --git a/package.json b/package.json index c24dcff..66b50d4 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "dev": "electron .", "clean": "rm -rf ./out", "package": "electron-forge package", - "make": "electron-forge make", + "make": "npm run clean && electron-forge make", "publish": "electron-forge publish" }, "devDependencies": { @@ -27,6 +27,7 @@ "@babel/preset-env": "^7.2.3", "@electron-forge/cli": "^7.2.0", "@electron-forge/maker-deb": "^7.2.0", + "@electron-forge/maker-dmg": "^7.2.0", "@electron-forge/maker-rpm": "^7.2.0", "@electron-forge/maker-squirrel": "^7.2.0", "@electron-forge/maker-zip": "^7.2.0",