Skip to content

Commit b228e18

Browse files
committed
fix(package): copy json file on build
1 parent 3f0be97 commit b228e18

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"scripts": {
88
"build": "rimraf build; npm run webpack-app; npm run webpack-main",
99
"webpack-app": "webpack --progress --profile --colors --display-error-details --display-cached --mode=production",
10-
"webpack-main": "NODE_ENV=production webpack --config webpack.config.main.js --progress --profile --colors --display-error-details --display-cached --mode=production",
10+
"webpack-main": "NODE_ENV=production webpack --config webpack.config.main.js --progress --profile --colors --display-error-details --display-cached --mode=production && cp src/package.json build/",
1111
"watch": "webpack --watch --progress --profile --colors --display-error-details --display-cached",
1212
"release-mac": "electron-packager build/ gifbar --platform=darwin --arch=x64 --overwrite --no-tmpdr --out=releases/ --app-version=$npm_package_version --icon=gifbar-icon.icns --no-prune",
1313
"release-win": "electron-packager build/ gifbar --platform=win32 --arch=x64 --overwrite --no-tmpdr --out=releases/ --app-version=$npm_package_version --icon=gifbar-icon.icns --no-prune",

0 commit comments

Comments
 (0)