1
0
mirror of https://github.com/kremalicious/blowfish.git synced 2024-11-22 09:47:00 +01:00

fix dist build

This commit is contained in:
Matthias Kretschmann 2020-02-09 19:39:38 +01:00
parent 693e3300e5
commit c70bc0d984
Signed by: m
GPG Key ID: 606EEEF3C479A91F
2 changed files with 6 additions and 6 deletions

View File

@ -10,8 +10,8 @@
"test:watch": "npm run jest -- --watch", "test:watch": "npm run jest -- --watch",
"jest": "NODE_ENV=test jest -c tests/jest.config.js", "jest": "NODE_ENV=test jest -c tests/jest.config.js",
"lint": "eslint --ignore-path .gitignore ./src/**/*.{js,jsx} && stylelint --ignore-path .gitignore ./src/**/*.{css,scss}", "lint": "eslint --ignore-path .gitignore ./src/**/*.{js,jsx} && stylelint --ignore-path .gitignore ./src/**/*.{css,scss}",
"copy": "rsync src/renderer/images/icon* build/", "copy:icons": "copy 'src/renderer/images/icon*' build/",
"build:react": "next build src/renderer && next export src/renderer && npm run copy", "build:react": "cross-env NODE_ENV=production next build src/renderer && next export src/renderer && npm run copy:icons",
"build:electron": "electron-builder build -ml -p never", "build:electron": "electron-builder build -ml -p never",
"build:electron:win": "electron-builder build -w -p never", "build:electron:win": "electron-builder build -w -p never",
"dist": "./scripts/release-prepare.sh", "dist": "./scripts/release-prepare.sh",
@ -49,6 +49,8 @@
"auto-changelog": "^1.16.2", "auto-changelog": "^1.16.2",
"babel-eslint": "^10.0.3", "babel-eslint": "^10.0.3",
"babel-jest": "^25.1.0", "babel-jest": "^25.1.0",
"copy": "^0.3.2",
"cross-env": "^7.0.0",
"electron": "^8.0.0", "electron": "^8.0.0",
"electron-builder": "^22.3.2", "electron-builder": "^22.3.2",
"electron-devtools-installer": "^2.2.4", "electron-devtools-installer": "^2.2.4",
@ -70,7 +72,6 @@
}, },
"browserslist": "electron >= 8.0", "browserslist": "electron >= 8.0",
"build": { "build": {
"asar": true,
"appId": "com.kremalicious.blowfish", "appId": "com.kremalicious.blowfish",
"files": [ "files": [
"./src/main/**/*", "./src/main/**/*",

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
rm -rf {dist,src/renderer/.next,src/renderer/out}/ && \ rm -rf {dist,build,src/renderer/.next,src/renderer/out}/ && \
npm run build:react && \ npm run build:react && \
npm run build:electron && \ npm run build:electron && \
@ -14,6 +14,5 @@ if [ -x "$(command -v docker)" ]; then
-v ~/.cache/electron:/root/.cache/electron \ -v ~/.cache/electron:/root/.cache/electron \
-v ~/.cache/electron-builder:/root/.cache/electron-builder \ -v ~/.cache/electron-builder:/root/.cache/electron-builder \
electronuserland/builder:wine \ electronuserland/builder:wine \
/bin/bash -c "npm i && npm run build && npm run build:electron:win" /bin/bash -c "npm i && npm run build:react && npm run build:electron:win"
fi fi