Skip to content

Commit

Permalink
v0.235.0
Browse files Browse the repository at this point in the history
  • Loading branch information
monsterkodi committed Jun 3, 2019
1 parent db439a8 commit 4055487
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 18 deletions.
34 changes: 22 additions & 12 deletions bin/release.sh
Original file line number Diff line number Diff line change
@@ -1,18 +1,28 @@
#!/usr/bin/env bash
cd `dirname $0`/..

APP=`sds -rp name`
VERSION=`sds -rp version`
DIR=`dirname $0`
BIN=$DIR/../node_modules/.bin
SDS=$BIN/sds
cd $DIR/..

APP=`$SDS -rp name`
VERSION=`$SDS version`
VVERSION=v$VERSION
USER=`sds -rp author`
USER=`$SDS author`
DMG=$APP-$VERSION.dmg

echo 'tag and push ...'
# git tag $VVERSION && git push --tags

echo 'creating release ...'
github-release release --user $USER --repo $APP --tag $VVERSION --name $VVERSION --pre-release

echo 'uploading dmg ...'
github-release upload --user $USER --repo $APP --tag $VVERSION --name $DMG --file $DMG
if $BIN/konrad --commit $VVERSION; then

source ~/.tokens
echo 'using token' $GH_TOKEN

./bin/buildmac.sh
./bin/dmg.sh

echo 'creating release ...'
github-release release -s $GH_TOKEN --user $USER --repo $APP --tag $VVERSION-mac --name "$VVERSION macOS" --pre-release

echo 'uploading dmg ...'
github-release upload -s $GH_TOKEN --user $USER --repo $APP --tag $VVERSION-mac --name $DMG --file $DMG

fi
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ko",
"productName": "ko",
"version": "0.232.0",
"version": "0.235.0",
"description": "text editor",
"main": "js/main/main.js",
"preferGlobal": true,
Expand Down Expand Up @@ -51,6 +51,7 @@
"electron-packager": "^13.1.1",
"electron-rebuild": "^1.8.5",
"koffee": "^0.56.0",
"konrad": "^0.129.0"
"konrad": "^0.130.0",
"sds": "^2.1.1"
}
}
}
6 changes: 3 additions & 3 deletions package.noon
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name ko
productName ko
version 0.232.0
version 0.235.0
description text editor
main js/main/main.js
preferGlobal true
Expand Down Expand Up @@ -41,6 +41,6 @@ devDependencies
electron ^5.0.2
electron-packager ^13.1.1
electron-rebuild ^1.8.5
github-release ^0.2.0
koffee ^0.56.0
konrad ^0.129.0
konrad ^0.130.0
sds ^2.1.1

0 comments on commit 4055487

Please sign in to comment.