mirror of
https://github.com/iDescriptor/iDescriptor.git
synced 2026-06-21 19:35:49 +08:00
use create-dmg to create dmg
This commit is contained in:
@@ -36,11 +36,12 @@ jobs:
|
||||
version: ${{ env.QT_VERSION }}
|
||||
modules: "qtmultimedia qtlocation qtpositioning qtserialport"
|
||||
|
||||
- uses: oven-sh/setup-bun@v2
|
||||
with:
|
||||
bun-version: latest
|
||||
|
||||
- name: Update pkgconfig path
|
||||
run: |
|
||||
# ls "${QT_ROOT_DIR}/lib/pkgconfig"
|
||||
# macOS on Apple Silicon uses /opt/homebrew, Intel Macs use /usr/local
|
||||
# echo "PKG_CONFIG_PATH=/opt/homebrew/lib/pkgconfig:${PKG_CONFIG_PATH:-}" >> "$GITHUB_ENV"
|
||||
echo "PKG_CONFIG_PATH=$(brew --prefix)/lib/pkgconfig:${PKG_CONFIG_PATH:-}" >> "$GITHUB_ENV"
|
||||
echo "CMAKE_PREFIX_PATH=${QT_ROOT_DIR}/lib/cmake:${CMAKE_PREFIX_PATH:-}" >> "$GITHUB_ENV"
|
||||
|
||||
@@ -69,7 +70,9 @@ jobs:
|
||||
gst-plugins-good \
|
||||
gst-plugins-bad \
|
||||
gst-plugins-ugly \
|
||||
gst-libav
|
||||
gst-libav \
|
||||
graphicsmagick \
|
||||
imagemagick
|
||||
|
||||
- name: Compile additional dependencies
|
||||
run: |
|
||||
@@ -176,7 +179,10 @@ jobs:
|
||||
|
||||
install_name_tool -add_rpath "@executable_path/../Frameworks" build/iDescriptor.app/Contents/MacOS/iDescriptor
|
||||
|
||||
macdeployqt build/iDescriptor.app -dmg -verbose=2
|
||||
- name: Create DMG
|
||||
run: |
|
||||
bun install -g create-dmg
|
||||
create-dmg --volname "iDescriptor" --window-size 500 300 --icon-size 100 --app-drop-link 400 150 --icon "iDescriptor.app" 100 150 "build/iDescriptor.dmg" "build/iDescriptor.app" --no-code-sign
|
||||
|
||||
- name: Upload Artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
|
||||
Reference in New Issue
Block a user