-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Custom script to publish releases to GCS
- Loading branch information
Mickael Alliel
committed
Jul 18, 2019
1 parent
692816b
commit 97ee3ee
Showing
5 changed files
with
64 additions
and
822 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "explorook", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Rookout's site addon to support local files and folders", | ||
"main": "dist/index.js", | ||
"scripts": { | ||
|
@@ -24,10 +24,6 @@ | |
"provider": "github", | ||
"owner": "rookout", | ||
"repo": "explorook" | ||
}, | ||
{ | ||
"provider": "generic", | ||
"url": "https://get.rookout.com/${name}/${os}/${arch}/${version}" | ||
} | ||
], | ||
"directories": { | ||
|
@@ -62,13 +58,6 @@ | |
"icon": "assets/icons/[email protected]" | ||
} | ||
}, | ||
"publish-gcs": { | ||
"bucket": "get.rookout.com", | ||
"path": "/${name}/${os}/${arch}/${filename}/${version}", | ||
"serviceAccount": "/Users/distiller/project/gcloud_service_account.json", | ||
"public": true, | ||
"resumable": false | ||
}, | ||
"repository": "https://github.com/rookout/explorook", | ||
"keywords": [ | ||
"Rookout", | ||
|
@@ -97,7 +86,6 @@ | |
"electron": "^2.0.8", | ||
"electron-builder": "^20.19.2", | ||
"electron-builder-lib": "^20.15.3", | ||
"electron-publisher-gcs": "^0.1.5", | ||
"graphql-middleware": "^2.0.2", | ||
"tslint": "^5.10.0", | ||
"typescript": "^2.8.3" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
VERSION=$(cat /Users/distiller/project/package.json \ | ||
| grep version \ | ||
| head -1 \ | ||
| awk -F: '{ print $2 }' \ | ||
| sed 's/[",]//g' \ | ||
| tr -d '[[:space:]]') | ||
|
||
BUCKET="get.rookout.com" | ||
INSTALLERS_DIR="/Users/distiller/project/installers/" | ||
|
||
WINDOWS_FILE_NAME="Explorook Setup ${VERSION}.exe" | ||
WINDOWS_NO_SPACE_FILE_NAME="explorook-setup-${VERSION}.exe" | ||
MAC_DMG_FILE_NAME="Explorook-${VERSION}.dmg" | ||
MAC_ZIP_FILE_NAME="Explorook-${VERSION}.zip" | ||
LINUX_FILE_NAME="explorook-${VERSION}-x86_64.AppImage" | ||
|
||
|
||
echo "Starting upload to Google Storage Bucket: ${BUCKET}" | ||
echo "Uploading Windows Installer..." | ||
gsutil cp "${INSTALLERS_DIR}${WINDOWS_FILE_NAME}" "gs://${BUCKET}/explorook/windows/${WINDOWS_NO_SPACE_FILE_NAME}" | ||
gsutil acl ch -u AllUsers:R "gs://${BUCKET}/explorook/windows/${WINDOWS_NO_SPACE_FILE_NAME}" | ||
|
||
echo "Uploading Mac Installers (DMG+ZIP)..." | ||
gsutil cp "${INSTALLERS_DIR}${MAC_DMG_FILE_NAME}" "gs://${BUCKET}/explorook/mac/${MAC_DMG_FILE_NAME}" | ||
gsutil acl ch -u AllUsers:R "gs://${BUCKET}/explorook/mac/${MAC_DMG_FILE_NAME}" | ||
|
||
gsutil cp "${INSTALLERS_DIR}${MAC_ZIP_FILE_NAME}" "gs://${BUCKET}/explorook/mac/${MAC_ZIP_FILE_NAME}" | ||
gsutil acl ch -u AllUsers:R "gs://${BUCKET}/explorook/mac/${MAC_ZIP_FILE_NAME}" | ||
|
||
echo "Uploading Linux Installer..." | ||
gsutil cp "${INSTALLERS_DIR}${LINUX_FILE_NAME}" "gs://${BUCKET}/explorook/linux/${LINUX_FILE_NAME}" | ||
gsutil acl ch -u AllUsers:R "gs://${BUCKET}/explorook/linux/${LINUX_FILE_NAME}" | ||
|
||
echo "Uploaded release successfully to ${BUCKET} !" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.