Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

warning 6000: unknown variable/constant "{APP_32_NAME}" detected, ignoring (macro:installApplicationFiles:37) #8688

Open
CNOCTAVE opened this issue Nov 15, 2024 · 1 comment

Comments

@CNOCTAVE
Copy link

  • Electron-Builder Version: "^25.1.8"
  • Node Version: 22
  • Electron Version: "^33.2.0"
  • Electron Type (current, beta, nightly): current
  • Target: win nsis arm64

Error log:
`electron-builder --win --config win_nsis_arm64.json

• electron-builder version=25.1.8 os=10.0.20348
• artifacts will be published reason=tag is defined tag=v1.3.0
• loaded configuration file=D:\a\marked_reader\marked_reader\win_nsis_arm64.json
• executing @electron/rebuild electronVersion=33.2.0 arch=arm64 buildFromSource=false appDir=./
• installing native dependencies arch=arm64
• completed installing native dependencies
• packaging platform=win32 arch=arm64 electron=33.2.0 appOutDir=dist\win-arm64-unpacked
• downloading url=https://github.com/electron/electron/releases/download/v33.2.0/electron-v33.2.0-win32-arm64.zip size=120 MB parts=8
• downloaded url=https://github.com/electron/electron/releases/download/v33.2.0/electron-v33.2.0-win32-arm64.zip duration=1.259s
• updating asar integrity executable resource executablePath=dist\win-arm64-unpacked\marked_reader.exe
• downloading url=https://mirrors.huaweicloud.com/electron-builder-binaries/winCodeSign-2.6.0/winCodeSign-2.6.0.7z size=5.6 MB parts=1
• downloaded url=https://mirrors.huaweicloud.com/electron-builder-binaries/winCodeSign-2.6.0/winCodeSign-2.6.0.7z duration=4.271s
• signing with signtool.exe path=dist\win-arm64-unpacked\marked_reader.exe
• no signing info identified, signing is skipped signHook=false cscInfo=null
• building target=nsis file=dist\marked-reader-1.2.0-win-arm64.exe archs=arm64 oneClick=true perMachine=false
• downloading url=https://mirrors.huaweicloud.com/electron-builder-binaries/nsis-3.0.4.1/nsis-3.0.4.1.7z size=1.3 MB parts=1
• downloaded url=https://mirrors.huaweicloud.com/electron-builder-binaries/nsis-3.0.4.1/nsis-3.0.4.1.7z duration=5.433s
• signing with signtool.exe path=dist\win-arm64-unpacked\resources\elevate.exe
• no signing info identified, signing is skipped signHook=false cscInfo=null
• downloading url=https://mirrors.huaweicloud.com/electron-builder-binaries/nsis-resources-3.4.1/nsis-resources-3.4.1.7z size=731 kB parts=1
• downloaded url=https://mirrors.huaweicloud.com/electron-builder-binaries/nsis-resources-3.4.1/nsis-resources-3.4.1.7z duration=2.928s
• signing with signtool.exe path=dist__uninstaller-nsis-marked-reader.exe
• no signing info identified, signing is skipped signHook=false cscInfo=null
• signing with signtool.exe path=dist\marked-reader-1.2.0-win-arm64.exe
• no signing info identified, signing is skipped signHook=false cscInfo=null
• building block map blockMapFile=dist\marked-reader-1.2.0-win-arm64.exe.blockmap
• building target=nsis-web file=dist\nsis-web\marked-reader-1.2.0-win-arm64.exe archs=arm64 oneClick=true perMachine=false
• publishing publisher=Github (owner: CNOCTAVE, project: marked_reader, version: 1.2.0)
• uploading file=marked-reader-1.2.0-win-arm64.exe.blockmap provider=github
• uploading file=marked-reader-1.2.0-win-arm64.exe provider=github
• GitHub release not created reason=existing release published more than 2 hours ago tag=v1.2.0 version=1.2.0 date=Wed Nov 13 2024 11:15:11 GMT+0000 (Coordinated Universal Time)
• skipped publishing file=marked-reader-1.2.0-win-arm64.exe.blockmap reason=existing release published more than 2 hours ago tag=v1.2.0 version=1.2.0 date=Wed Nov 13 2024 11:15:11 GMT+0000 (Coordinated Universal Time)
• skipped publishing file=marked-reader-1.2.0-win-arm64.exe reason=existing release published more than 2 hours ago tag=v1.2.0 version=1.2.0 date=Wed Nov 13 2024 11:15:11 GMT+0000 (Coordinated Universal Time)
• building embedded block map file=dist\nsis-web\marked-reader-1.2.0-arm64.nsis.7z
• uploading file=marked-reader-1.2.0-arm64.nsis.7z provider=github
• skipped publishing file=marked-reader-1.2.0-arm64.nsis.7z reason=existing release published more than 2 hours ago tag=v1.2.0 version=1.2.0 date=Wed Nov 13 2024 11:15:11 GMT+0000 (Coordinated Universal Time)
• signing with signtool.exe path=dist\nsis-web__uninstaller-nsis-web-marked-reader.exe
• no signing info identified, signing is skipped signHook=false cscInfo=null
⨯ C:\Users\runneradmin\AppData\Local\electron-builder\Cache\nsis\nsis-3.0.4.1\Bin\makensis.exe process failed ERR_ELECTRON_BUILDER_CANNOT_EXECUTE
Exit code:
1
Output:
Command line defined: "APP_ID=cn.cnoctave.marked_reader"
Command line defined: "APP_GUID=0e30b946-35e1-5c47-9951-3de533427fb7"
Command line defined: "UNINSTALL_APP_KEY=0e30b946-35e1-5c47-9951-3de533427fb7"
Command line defined: "PRODUCT_NAME=marked_reader"
Command line defined: "PRODUCT_FILENAME=marked_reader"
Command line defined: "APP_FILENAME=marked-reader"
Command line defined: "APP_DESCRIPTION=marked_reader is an open source Markdown reader packed by Electron"
Command line defined: "VERSION=1.2.0"
Command line defined: "PROJECT_DIR=D:\a\marked_reader\marked_reader"
Command line defined: "BUILD_RESOURCES_DIR=D:\a\marked_reader\marked_reader\build"
Command line defined: "APP_PACKAGE_NAME=marked-reader"
Command line defined: "MUI_ICON=D:\a\marked_reader\marked_reader\dist.icon-ico\icon.ico"
Command line defined: "MUI_UNICON=D:\a\marked_reader\marked_reader\dist.icon-ico\icon.ico"
Command line defined: "APP_ARM64=D:\a\marked_reader\marked_reader\dist\nsis-web\marked-reader-1.2.0-arm64.nsis.7z"
Command line defined: "APP_ARM64_NAME=marked-reader-1.2.0-arm64.nsis.7z"
Command line defined: "APP_ARM64_HASH=916ACC266CFDF9C5B0639EFE96EDB9726A4A849CAA20DC42EC31B7D4E49DE1A487540996999019D493F2D6EB062E6FDD8A5311CE731C6CFCD401CD675CC1594E"
Command line defined: "APP_ARM64_UNPACKED_SIZE=296184"
Command line defined: "COMPANY_NAME=Yu Hongbo"
Command line defined: "APP_PRODUCT_FILENAME=marked_reader"
Command line defined: "APP_PACKAGE_STORE_FILE=marked-reader-updater\package.7z"
Command line defined: "ONE_CLICK"
Command line defined: "RUN_AFTER_FINISH"
Command line defined: "SHORTCUT_NAME=marked_reader"
Command line defined: "UNINSTALL_DISPLAY_NAME=marked_reader 1.2.0"
Command line defined: "APP_PACKAGE_URL_IS_INCOMPLETE"
Command line defined: "APP_PACKAGE_URL=https://github.com/CNOCTAVE/marked_reader/releases/download/v1.2.0"
Command line defined: "ESTIMATED_SIZE=296183"
Command line defined: "UNINSTALLER_OUT_FILE=D:\a\marked_reader\marked_reader\dist\nsis-web__uninstaller-nsis-web-marked-reader.exe"
Processing config: C:\Users\runneradmin\AppData\Local\electron-builder\Cache\nsis\nsis-3.0.4.1\nsisconf.nsh
Processing script file: "" (UTF8)
warning 6000: unknown variable/constant "{APP_32_NAME}" detected, ignoring (macro:installApplicationFiles:37)

Error output:
Error: warning treated as error
failedTask=build stackTrace=Error: C:\Users\runneradmin\AppData\Local\electron-builder\Cache\nsis\nsis-3.0.4.1\Bin\makensis.exe process failed ERR_ELECTRON_BUILDER_CANNOT_EXECUTE
Exit code:
1
Output:
Command line defined: "APP_ID=cn.cnoctave.marked_reader"
Command line defined: "APP_GUID=0e30b946-35e1-5c47-9951-3de533427fb7"
Command line defined: "UNINSTALL_APP_KEY=0e30b946-35e1-5c47-9951-3de533427fb7"
Command line defined: "PRODUCT_NAME=marked_reader"
Command line defined: "PRODUCT_FILENAME=marked_reader"
Command line defined: "APP_FILENAME=marked-reader"
Command line defined: "APP_DESCRIPTION=marked_reader is an open source Markdown reader packed by Electron"
Command line defined: "VERSION=1.2.0"
Command line defined: "PROJECT_DIR=D:\a\marked_reader\marked_reader"
Command line defined: "BUILD_RESOURCES_DIR=D:\a\marked_reader\marked_reader\build"
Command line defined: "APP_PACKAGE_NAME=marked-reader"
Command line defined: "MUI_ICON=D:\a\marked_reader\marked_reader\dist.icon-ico\icon.ico"
Command line defined: "MUI_UNICON=D:\a\marked_reader\marked_reader\dist.icon-ico\icon.ico"
Command line defined: "APP_ARM64=D:\a\marked_reader\marked_reader\dist\nsis-web\marked-reader-1.2.0-arm64.nsis.7z"
Command line defined: "APP_ARM64_NAME=marked-reader-1.2.0-arm64.nsis.7z"
Command line defined: "APP_ARM64_HASH=916ACC266CFDF9C5B0639EFE96EDB9726A4A849CAA20DC42EC31B7D4E49DE1A487540996999019D493F2D6EB062E6FDD8A5311CE731C6CFCD401CD675CC1594E"
Command line defined: "APP_ARM64_UNPACKED_SIZE=296184"
Command line defined: "COMPANY_NAME=Yu Hongbo"
Command line defined: "APP_PRODUCT_FILENAME=marked_reader"
Command line defined: "APP_PACKAGE_STORE_FILE=marked-reader-updater\package.7z"
Command line defined: "ONE_CLICK"
Command line defined: "RUN_AFTER_FINISH"
Command line defined: "SHORTCUT_NAME=marked_reader"
Command line defined: "UNINSTALL_DISPLAY_NAME=marked_reader 1.2.0"
Command line defined: "APP_PACKAGE_URL_IS_INCOMPLETE"
Command line defined: "APP_PACKAGE_URL=https://github.com/CNOCTAVE/marked_reader/releases/download/v1.2.0"
Command line defined: "ESTIMATED_SIZE=296183"
Command line defined: "UNINSTALLER_OUT_FILE=D:\a\marked_reader\marked_reader\dist\nsis-web__uninstaller-nsis-web-marked-reader.exe"
Processing config: C:\Users\runneradmin\AppData\Local\electron-builder\Cache\nsis\nsis-3.0.4.1\nsisconf.nsh
Processing script file: "" (UTF8)
warning 6000: unknown variable/constant "{APP_32_NAME}" detected, ignoring (macro:installApplicationFiles:37)
Error output:
Error: warning treated as error
at ChildProcess. (D:\a\marked_reader\marked_reader\node_modules\builder-util\src\util.ts:255:14)
at Object.onceWrapper (node:events:633:26)
at ChildProcess.emit (node:events:518:28)
at ChildProcess.cp.emit (D:\a\marked_reader\marked_reader\node_modules\cross-spawn\lib\enoent.js:34:29)
at maybeClose (node:internal/child_process:1104:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:304:5)`

@CNOCTAVE
Copy link
Author

For win nsis ia32 and win nsis x64, there is no such problem. So I'm sure this is a bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant