Skip to content

Commit

Permalink
Add enitlements file and also sign x86 version of macos app.
Browse files Browse the repository at this point in the history
  • Loading branch information
streetpea committed Mar 26, 2024
1 parent 61bb66f commit e47b7a3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ jobs:
$(brew --prefix)/opt/qt@6/bin/macdeployqt Chiaki4deck.app -qmldir="$PWD/gui/src/qml" -libpath=$(brew --prefix)/lib
ln -s libvulkan.1.dylib Chiaki4deck.app/Contents/Frameworks/vulkan
ln -s ../../../../../../../Frameworks Chiaki4deck.app/Contents/Frameworks/QtWebEngineCore.framework/Helpers/QtWebEngineProcess.app/Contents
codesign --force --entitlements gui/entitlements.xml --deep --sign - Chiaki4deck.app
hdiutil create -srcfolder Chiaki4deck.app Chiaki4deck.dmg
codesign --force --entitlements gui/entitlements.xml --deep --sign - Chiaki4deck.dmg
- name: Upload Chiaki4deck Artifact
uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -84,9 +86,9 @@ jobs:
$(brew --prefix)/opt/qt@6/bin/macdeployqt Chiaki4deck.app -qmldir="$PWD/gui/src/qml" -libpath=$(brew --prefix)/lib
ln -s libvulkan.1.dylib Chiaki4deck.app/Contents/Frameworks/vulkan
ln -s ../../../../../../../Frameworks Chiaki4deck.app/Contents/Frameworks/QtWebEngineCore.framework/Helpers/QtWebEngineProcess.app/Contents
codesign --force --entitlements entitlements.xml --deep --sign - Chiaki4deck.app
codesign --force --entitlements gui/entitlements.xml --deep --sign - Chiaki4deck.app
hdiutil create -srcfolder Chiaki4deck.app Chiaki4deck.dmg
codesign --force --entitlements entitlements.xml --deep --sign - Chiaki4deck.dmg
codesign --force --entitlements gui/entitlements.xml --deep --sign - Chiaki4deck.dmg
- name: Upload Chiaki4deck Artifact
uses: actions/upload-artifact@v3
Expand Down
9 changes: 9 additions & 0 deletions gui/entitlements.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "https://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.device.audio-input
</key>
<true/>
</dict>
</plist>

0 comments on commit e47b7a3

Please sign in to comment.