-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
zm
committed
Apr 29, 2022
1 parent
6002d03
commit ae3daf6
Showing
15 changed files
with
135 additions
and
69 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
Binary file not shown.
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
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
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
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
File renamed without changes.
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,3 +1,10 @@ | ||
## 2.8.2 - 2022-04-29 | ||
|
||
### Fixed | ||
- App update error | ||
|
||
--- | ||
|
||
## 2.8.1 - 2022-04-06 | ||
|
||
### Changed | ||
|
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,3 +1,10 @@ | ||
## 2.8.2 - 2022-04-29 | ||
|
||
### Fixed | ||
- 应用更新错误 | ||
|
||
--- | ||
|
||
## 2.8.1 - 2022-04-06 | ||
|
||
### Changed | ||
|
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,7 +1,2 @@ | ||
# Autogenerated by fastlane | ||
# | ||
# Ensure this file is checked in to source control! | ||
|
||
gem 'fastlane-plugin-versioning' | ||
|
||
gem 'fastlane-plugin-dmg' |
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,38 @@ | ||
|
||
|
||
function transform() { | ||
local changelog=`cat $1` | ||
changelog=${changelog%%---*} | ||
changelog=${changelog#*###} | ||
changelog="###$changelog" | ||
echo "$changelog<?" | ||
} | ||
|
||
|
||
function sparkle_enclosure() { | ||
local signature=`$PWD/assets/sign_update -s $SPARKLE_KEY $APP_NAME.dmg` | ||
local enclosure="<enclosure | ||
url=\"$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/releases/download/$APP_VERSION/$APP_NAME.dmg\" | ||
sparkle:version=\"$APP_VERSION\" | ||
$signature | ||
type=\"application/octet-stream\" />" | ||
echo $enclosure | ||
} | ||
|
||
function generate_changlog() { | ||
echo "$(transform changelogs/CHANGELOG.md)" > $BODY_PATH | ||
echo "$(transform changelogs/CHANGELOG_SC.md)" >> $BODY_PATH | ||
echo $(sparkle_enclosure) >> $BODY_PATH | ||
} | ||
|
||
|
||
function create_dmg() { | ||
npm install --global create-dmg | ||
create-dmg $APP_NAME.app | ||
mv $APP_NAME*.dmg $APP_NAME.dmg | ||
} | ||
|
||
create_dmg | ||
generate_changlog | ||
|
||
|