-
Notifications
You must be signed in to change notification settings - Fork 255
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
Showing
2 changed files
with
114 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -83,14 +83,7 @@ jobs: | |
- name: Build macOS app - macOS | ||
if: ${{ matrix.build == 'macos' }} | ||
run: | | ||
chmod +x build-macos.sh | ||
./build-macos.sh | ||
# cd dist | ||
ls -al dist | ||
rm dist/MDCx | ||
# `upload-artifact`会使文件丢失可执行权限。解决思路,先把`dist`打包成zip,再上传 | ||
zip -r MDCx.app.zip dist | ||
ls -al | ||
bash ./build-macos.sh --create-dmg --version "${{ github.ref_name }}" | ||
- name: Build Windows app - Windows | ||
if: ${{ matrix.build == 'windows' }} | ||
|
@@ -125,8 +118,8 @@ jobs: | |
uses: svenstaro/[email protected] | ||
if: ${{ matrix.build == 'macos' }} | ||
with: | ||
asset_name: MDCx-$tag-${{ matrix.build }}-${{ matrix.arch }}.app.zip | ||
file: MDCx.app.zip | ||
asset_name: MDCx-$tag-${{ matrix.build }}-${{ matrix.arch }}.dmg | ||
file: dist/MDCx.dmg | ||
prerelease: ${{ startsWith(github.ref, 'refs/tags/pre-') }} | ||
body: | | ||
${{ steps.get-changelog.outputs.CHANGELOG }} | ||
|
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