Skip to content
This repository has been archived by the owner on Aug 10, 2023. It is now read-only.

Commit

Permalink
setup binary generation
Browse files Browse the repository at this point in the history
  • Loading branch information
mageddo committed May 4, 2020
1 parent cd54528 commit bf040ad
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
3 changes: 3 additions & 0 deletions RELEASE-NOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 3.5.1
* Generating native-image binary

# 3.5.0
* Table Of Contents: Now you can see a table of contents at the editor when previewing
* Code block button: Click on code block button while editing (selecting a existent code or not) to generate a new code
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.5.0
3.5.1
16 changes: 7 additions & 9 deletions builder
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ case $1 in
build )

echo "> starting build $APP_VERSION"
#./gradlew clean heartbeat build nativeImage copyStatics --info
./gradlew clean heartbeat build --info
./gradlew clean heartbeat build nativeImage copyStatics --info
echo "> build success"

;;
Expand All @@ -41,19 +40,18 @@ case $1 in

upload-release )

DESC=$(cat RELEASE-NOTES.md | awk 'BEGIN {RS="|"} {print substr($0, 0, index(substr($0, 3), "###"))}' | sed ':a;N;$!ba;s/\n/\\r\\n/g')
DESC=$(cat RELEASE-NOTES.md | awk 'BEGIN {RS="|"} {print substr($0, 0, index(substr($0, 3), "#"))}' | sed ':a;N;$!ba;s/\n/\\r\\n/g')

# SOURCE_FILE="build/native-image/dist/bookmark-notes.zip"
# TARGET_FILE=bookmark-notes-linux-amd64-$APP_VERSION.zip
#
# cp ${SOURCE_FILE} ${TARGET_FILE}
SOURCE_FILE="build/native-image/dist/bookmark-notes.zip"
TARGET_FILE=bookmark-notes-linux-amd64-$APP_VERSION.zip

cp ${SOURCE_FILE} ${TARGET_FILE}

SOURCE_FILE_2="build/distributions/bookmark-notes.zip"
TARGET_FILE_2=bookmark-notes-$APP_VERSION.zip
cp ${SOURCE_FILE_2} ${TARGET_FILE_2}

# github-cli release mageddo bookmark-notes $APP_VERSION $CURRENT_BRANCH "${DESC}" ${TARGET_FILE} ${TARGET_FILE_2}
github-cli release mageddo bookmark-notes $APP_VERSION $CURRENT_BRANCH "${DESC}" ${TARGET_FILE_2}
github-cli release mageddo bookmark-notes $APP_VERSION $CURRENT_BRANCH "${DESC}" ${TARGET_FILE} ${TARGET_FILE_2}

;;

Expand Down

0 comments on commit bf040ad

Please # to comment.