windows release支持
This commit is contained in:
+15
-13
@@ -10,19 +10,10 @@ files:
|
||||
- out/**/*
|
||||
- package.json
|
||||
|
||||
# Ship only this platform's native prebuilds.
|
||||
#
|
||||
# better-sqlite3 alone carries eight, and node-pty another eleven — for other
|
||||
# operating systems, other architectures, and musl. None of them can be
|
||||
# loaded here and together they are about 10MB of the package.
|
||||
# better-sqlite3 ships these as flat FILES (`win32-arm64.node`), not as
|
||||
# directories, so the pattern must not require a trailing `/**`.
|
||||
- '!node_modules/better-sqlite3/prebuilds/win32-*'
|
||||
- '!node_modules/better-sqlite3/prebuilds/darwin-*'
|
||||
- '!node_modules/better-sqlite3/prebuilds/linuxmusl-*'
|
||||
- '!node_modules/better-sqlite3/prebuilds/linux-arm64*'
|
||||
- '!node_modules/node-pty/prebuilds/win32-*/**'
|
||||
- '!node_modules/node-pty/prebuilds/darwin-*/**'
|
||||
# Keep every native prebuild. electron-builder applies this file on Linux and
|
||||
# Windows, and removing another platform's binary here also removes the one a
|
||||
# cross-platform build needs. The small size saving is not worth a package
|
||||
# that builds successfully and then fails on its target machine.
|
||||
- '!node_modules/ssh2/lib/protocol/crypto/build/Release/obj/**'
|
||||
|
||||
# Native modules cannot be loaded from inside an asar archive.
|
||||
@@ -45,6 +36,17 @@ asarUnpack:
|
||||
# risk replacing working binaries with differently-built ones, for no gain.
|
||||
npmRebuild: false
|
||||
|
||||
win:
|
||||
target:
|
||||
- nsis
|
||||
icon: build/icon.png
|
||||
|
||||
nsis:
|
||||
oneClick: false
|
||||
allowToChangeInstallationDirectory: true
|
||||
createDesktopShortcut: true
|
||||
createStartMenuShortcut: true
|
||||
|
||||
linux:
|
||||
target:
|
||||
- AppImage
|
||||
|
||||
Reference in New Issue
Block a user