Skip to content

Commit

Permalink
feat: maker zip (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
DIYgod authored Jul 11, 2024
1 parent 7c597e1 commit a68ee9c
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ jobs:
name: ${{ matrix.os }}
path: |
out/make/**/*.dmg
out/make/**/*.zip
out/make/**/*.exe
out/make/**/*.AppImage
out/make/**/*.yml
Expand All @@ -115,6 +116,7 @@ jobs:
tag_name: v${{ steps.version.outputs.APP_VERSION }}
files: |
out/make/**/*.dmg
out/make/**/*.zip
out/make/**/*.exe
out/make/**/*.AppImage
out/make/**/*.yml
6 changes: 4 additions & 2 deletions forge.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ import path from "node:path"
import { FuseV1Options, FuseVersion } from "@electron/fuses"
import { MakerDMG } from "@electron-forge/maker-dmg"
import { MakerSquirrel } from "@electron-forge/maker-squirrel"
import { MakerZIP } from "@electron-forge/maker-zip"
import { FusesPlugin } from "@electron-forge/plugin-fuses"
import type { ForgeConfig } from "@electron-forge/shared-types"
import MakerAppImage from "@pengx17/electron-forge-maker-appimage"
import { rimraf } from "rimraf"

const artifactRegex = /.*\.(?:exe|dmg|AppImage)$/
const artifactRegex = /.*\.(?:exe|dmg|AppImage|zip)$/
const platformNamesMap = {
darwin: "macos",
linux: "linux",
Expand Down Expand Up @@ -83,7 +84,7 @@ const config: ForgeConfig = {
},
rebuildConfig: {},
makers: [
new MakerSquirrel({}),
new MakerZIP({}, ["darwin"]),
new MakerDMG({
background: "resources/dmg-background.png",
icon: "resources/dmg-icon.icns",
Expand Down Expand Up @@ -111,6 +112,7 @@ const config: ForgeConfig = {
},
],
}),
new MakerSquirrel({}),
new MakerAppImage({
options: {
icon: "resources/icon.png",
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@
"@electron-forge/cli": "7.4.0",
"@electron-forge/maker-dmg": "7.4.0",
"@electron-forge/maker-squirrel": "7.4.0",
"@electron-forge/maker-zip": "7.4.0",
"@electron-forge/plugin-fuses": "7.4.0",
"@electron-forge/publisher-github": "7.4.0",
"@electron-toolkit/tsconfig": "^1.0.1",
Expand Down
24 changes: 24 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a68ee9c

Please sign in to comment.