Skip to content

Commit

Permalink
Fix upload script
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentaTomas committed Mar 2, 2021
1 parent dc7fd02 commit 2a447fc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@
"electron:build-win": "npm run compile && electron-builder build --win --publish always",
"electron:build-linux": "npm run compile && electron-builder build --linux --publish always",
"electron:build-mac": "npm run compile && electron-builder build --mac --publish always",
"electron:build-all": "npm run compile && NOTARIZATION=none electron-builder -wml",
"electron:build-all": "npm run compile && electron-builder -wml",
"upload:win-bash": "bash.exe -l scripts/upload-win.sh",
"upload:win": "BUCKET=devbook-publish-test && gsutil cp gs://$BUCKET/latest.yml gs://$BUCKET/archive/$(date +%Y-%M-%d-%H%M)-latest.yml && echo Devbook-*.exe latest.yml | tr ' ' '\n' | xargs -n 1 -I{} gsutil -h \"Cache-Control:no-cache, max-age=0\" cp dist/{} gs://$BUCKET",
"upload:mac": "BUCKET=devbook-publish-test && gsutil cp gs://$BUCKET/latest-mac.yml gs://$BUCKET/archive/$(date +%Y-%M-%d-%H%M)-latest-mac.yml && echo Devbook-*.dmg Devbook-*.zip latest-mac.yml | tr ' ' '\n' | xargs -n 1 -I{} gsutil -h \"Cache-Control:no-cache, max-age=0\" cp dist/{} gs://$BUCKET",
"upload:linux": "BUCKET=devbook-publish-test && gsutil cp gs://$BUCKET/latest-linux.yml gs://$BUCKET/archive/$(date +%Y-%M-%d-%H%M)-latest-linux.yml && echo Devbook-*.AppImage latest-linux.yml | tr ' ' '\n' | xargs -n 1 -I{} gsutil -h \"Cache-Control:no-cache, max-age=0\" cp dist/{} gs://$BUCKET",
"upload:win": "BUCKET=devbook-publish && gsutil cp gs://$BUCKET/latest.yml gs://$BUCKET/archive/$(date +%Y-%M-%d-%H%M)-latest.yml && echo Devbook-*.exe latest.yml | tr ' ' '\n' | xargs -n 1 -I{} gsutil -h \"Cache-Control:no-cache, max-age=0\" cp dist/{} gs://$BUCKET",
"upload:mac": "BUCKET=devbook-publish && gsutil cp gs://$BUCKET/latest-mac.yml gs://$BUCKET/archive/$(date +%Y-%M-%d-%H%M)-latest-mac.yml && echo Devbook-*.dmg Devbook-*.zip latest-mac.yml | tr ' ' '\n' | xargs -n 1 -I{} gsutil -h \"Cache-Control:no-cache, max-age=0\" cp dist/{} gs://$BUCKET",
"upload:linux": "BUCKET=devbook-publish && gsutil cp gs://$BUCKET/latest-linux.yml gs://$BUCKET/archive/$(date +%Y-%M-%d-%H%M)-latest-linux.yml && echo Devbook-*.AppImage latest-linux.yml | tr ' ' '\n' | xargs -n 1 -I{} gsutil -h \"Cache-Control:no-cache, max-age=0\" cp dist/{} gs://$BUCKET",
"release:win": "npx rimraf dist && npm run electron:build-win && npm run upload:win",
"release:mac": "npx rimraf dist && npm run electron:build-mac && npm run upload:mac",
"release:linux": "npx rimraf dist && npm run electron:build-linux && npm run upload:linux"
Expand Down

0 comments on commit 2a447fc

Please sign in to comment.