Scripts for linking newly published builds to the current file

This commit is contained in:
Manoj Vivek 2019-10-26 14:31:13 +05:30
parent bfe7a99370
commit 35390cfa25
5 changed files with 38 additions and 4 deletions

View file

@ -1,7 +1,7 @@
{
"name": "Responsively-App",
"productName": "ResponsivelyApp",
"version": "0.0.10",
"version": "0.0.11",
"description": "A developer-friendly browser for developing responsive web apps",
"scripts": {
"build": "concurrently \"yarn build-main\" \"yarn build-renderer\"",
@ -20,7 +20,11 @@
"package-all": "yarn build && electron-builder build -mwl",
"package-ci": "yarn postinstall && yarn build && electron-builder build -mwl --publish always",
"package-linux": "yarn build && electron-builder build --linux",
"publish-linux": "yarn build && electron-builder build --linux --publish always",
"package-mac": "yarn build && electron-builder build --mac",
"publish-mac": "yarn build && electron-builder build --mac --publish always",
"package-win": "yarn build && electron-builder build --win --x64",
"publish-win": "yarn build && electron-builder build --win --x64 --publish always",
"postinstall": "electron-builder install-app-deps package.json && yarn build-dll && opencollective-postinstall",
"postlint-fix": "prettier --ignore-path .eslintignore --single-quote --write '**/*.{*{js,jsx,json},babelrc,eslintrc,prettierrc,stylelintrc}'",
"postlint-styles-fix": "prettier --ignore-path .eslintignore --single-quote --write '**/*.{css,scss}'",

10
desktop-app/publish-linux Executable file
View file

@ -0,0 +1,10 @@
#!/bin/bash
echo "Publishing..."
yarn run publish-linux
echo "Publishing... Done"
echo "Linking current version in S3..."
aws s3 cp s3://responsively-updates/stable/ResponsivelyApp-`node -p "require('./package.json').version"`.AppImage s3://responsively-updates/stable/ResponsivelyApp.AppImage --acl public-read
echo "Linking current version in S3... Done"

10
desktop-app/publish-mac Executable file
View file

@ -0,0 +1,10 @@
#!/bin/bash
echo "Publishing..."
yarn run publish-mac
echo "Publishing... Done"
echo "Linking current version in S3..."
aws s3 cp s3://responsively-updates/stable/ResponsivelyApp-`node -p "require('./package.json').version"`.dmg s3://responsively-updates/stable/ResponsivelyApp.dmg --acl public-read
echo "Linking current version in S3... Done"

10
desktop-app/publish-win Executable file
View file

@ -0,0 +1,10 @@
#!/bin/bash
echo "Publishing..."
yarn run publish-win
echo "Publishing... Done"
echo "Linking current version in S3..."
aws s3 cp s3://responsively-updates/stable/ResponsivelyApp\ Setup\ `node -p "require('./package.json').version"`.exe s3://responsively-updates/stable/ResponsivelyApp-Setup.exe --acl public-read
echo "Linking current version in S3... Done"

View file

@ -145,7 +145,7 @@
<div class="icon-round bg-primary mx-auto mb-4">
<img class="icon bg-primary" src="assets/img/logos/brand/apple.svg" alt="icon" data-inject-svg />
</div>
<a id="macOs" href="https://responsively-updates.s3.amazonaws.com/stable/ResponsivelyApp-0.0.10-mac.zip" class="m-1 btn btn-white border">
<a id="macOs" href="https://responsively-updates.s3.amazonaws.com/stable/ResponsivelyApp.dmg" class="m-1 btn btn-white border">
<h4 class="m-1">Download for Mac</h4>
</a>
</div>
@ -153,7 +153,7 @@
<div class="icon-round bg-primary mx-auto mb-4">
<img class="icon bg-primary" src="assets/img/icons/custom/windows-icon.svg" alt="icon" data-inject-svg />
</div>
<a id="windowsOs" href="https://responsively-updates.s3.amazonaws.com/stable/ResponsivelyApp+Setup+0.0.10.exe" class="m-1 btn btn-white border">
<a id="windowsOs" href="https://responsively-updates.s3.amazonaws.com/stable/ResponsivelyApp-Setup.exe" class="m-1 btn btn-white border">
<h4 class="m-1">Download for Windows</h4>
</a>
</div>
@ -161,7 +161,7 @@
<div class="icon-round bg-primary mx-auto mb-4">
<img class="icon bg-primary" src="assets/img/icons/custom/linux-icon.svg" alt="icon" data-inject-svg />
</div>
<a id="linuxOs" href="https://responsively-updates.s3.amazonaws.com/stable/ResponsivelyApp-0.0.10.AppImage" class="m-1 btn btn-white border">
<a id="linuxOs" href="https://responsively-updates.s3.amazonaws.com/stable/ResponsivelyApp.AppImage" class="m-1 btn btn-white border">
<h4 class="m-1">Download for Linux</h4>
</a>
</div>