Skip to content

Commit

Permalink
Update release-macos.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
huangliu authored Jan 18, 2024
1 parent 6a5b42b commit da0a1a5
Showing 1 changed file with 19 additions and 18 deletions.
37 changes: 19 additions & 18 deletions .github/workflows/release-macos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18

- name: Build frontend assets
shell: bash
Expand All @@ -80,33 +80,34 @@ jobs:
# AC_USERNAME: ${{ secrets.AC_USERNAME }}
# AC_PASSWORD: ${{ secrets.AC_PASSWORD }}

- name: Compress macOS app
shell: bash
working-directory: ./build/bin
run: |
mv tinyrdm.app "Tiny RDM.app"
zip -r TinyRDM-${{ steps.normalise_platform.outputs.tag }}.zip "Tiny RDM.app"
- name: Upload release asset (ZIP Package)
shell: bash
working-directory: ./build/bin/
run: |
filepath="TinyRDM-${{ steps.normalise_platform.outputs.tag }}.zip"
filename="TinyRDM_${{ steps.normalise_version.outputs.version }}_${{ steps.normalise_platform.outputs.tag }}.zip"
upload_url="https://uploads.github.com/repos/${GITHUB_REPOSITORY}/releases/${{ github.event.release.id }}/assets"
curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -H "Content-Type: application/zip" --data-binary @$filepath "$upload_url?name=$filename"
# - name: Compress macOS app
# shell: bash
# working-directory: ./build/bin
# run: |
# mv tinyrdm.app "Tiny RDM.app"
# zip -r TinyRDM-${{ steps.normalise_platform.outputs.tag }}.zip "Tiny RDM.app"
#
# - name: Upload release asset (ZIP Package)
# shell: bash
# working-directory: ./build/bin/
# run: |
# filepath="TinyRDM-${{ steps.normalise_platform.outputs.tag }}.zip"
# filename="TinyRDM_${{ steps.normalise_version.outputs.version }}_${{ steps.normalise_platform.outputs.tag }}.zip"
# upload_url="https://uploads.github.com/repos/${GITHUB_REPOSITORY}/releases/${{ github.event.release.id }}/assets"
# curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -H "Content-Type: application/zip" --data-binary @$filepath "$upload_url?name=$filename"

- uses: actions/checkout@v2
with:
repository: create-dmg/create-dmg
path: ./build/create-dmg
ref: main
ref: master

- name: Build macOS DMG
shell: bash
working-directory: ./build
run: |
rm TinyRDM-${{ steps.normalise_platform.outputs.tag }}.zip
mv tinyrdm.app "Tiny RDM.app"
# rm TinyRDM-${{ steps.normalise_platform.outputs.tag }}.zip
./build/create-dmg/create-dmg \
--no-internet-enable \
--volname "Tiny RDM.dmg" \
Expand Down

0 comments on commit da0a1a5

Please sign in to comment.