From 0626aa50baa507ad5bb75d5c2f3a59e025278a75 Mon Sep 17 00:00:00 2001 From: Jason Papakostas Date: Mon, 30 Jan 2017 19:00:42 +0000 Subject: [PATCH] Specify win32metadata to electron-builder #23 Note: the metadata is persistently cached by Windows at HKEY_CLASSES_ROOT\Local Settings\Software\Microsoft\Windows\Shell\MuiCache --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 2830fbe0..16576e64 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "download-ffmpeg": "bash ./scripts/ffmpeg-dl/dl.sh", "extract-ffmpeg": "bash ./scripts/ffmpeg-dl/extract.sh", "copy-ffmpeg": "rm -rf dist/ffmpeg && mkdir dist/ffmpeg && cp ffmpeg-tmp/binaries/${PLATFORM}_${ARCH}/* dist/ffmpeg", - "package-single": "npm run copy-ffmpeg && electron-packager dist LosslessCut --out=package --asar.unpackDir=ffmpeg --overwrite --platform=${PLATFORM} --arch=${ARCH} --icon=icon-dist/${ICON}", + "package-single": "npm run copy-ffmpeg && electron-packager dist LosslessCut --out=package --asar.unpackDir=ffmpeg --overwrite --platform=${PLATFORM} --arch=${ARCH} --icon=icon-dist/${ICON} --win32metadata.CompanyName=mifi --win32metadata.FileDescription=LosslessCut --win32metadata.OriginalFilename=LosslessCut.exe --win32metadata.ProductName=LosslessCut --win32metadata.InternalName=LosslessCut", "package:darwin_x64": "PLATFORM=darwin ARCH=x64 ICON=app.icns npm run package-single", "package:win32_ia32": "PLATFORM=win32 ARCH=ia32 ICON=app.ico npm run package-single", "package:win32_x64": "PLATFORM=win32 ARCH=x64 ICON=app.ico npm run package-single",