Skip to content

Commit

Permalink
add before_bundle script to manual sign ad-hoc
Browse files Browse the repository at this point in the history
  • Loading branch information
thewh1teagle committed Mar 31, 2024
1 parent f316c50 commit af815f2
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 4 deletions.
9 changes: 9 additions & 0 deletions desktop/src-tauri/Info.plist
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" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<!-- This option disable signing validation for dylibs -->
<key>com.apple.security.cs.disable-library-validation</key>
<true />
</dict>
</plist>
23 changes: 19 additions & 4 deletions desktop/src-tauri/tauri.macos.conf.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,35 @@
{
"build": {
"beforeBundleCommand": "echo"
"beforeBundleCommand": "../scripts/before_bundle.sh"
},
"bundle": {
"macOS": {
"frameworks": [
"ffmpeg/lib/libavcodec.60.31.102.dylib",
"ffmpeg/lib/libavcodec.60.dylib",
"ffmpeg/lib/libavcodec.dylib",
"ffmpeg/lib/libavdevice.60.3.100.dylib",
"ffmpeg/lib/libavdevice.60.dylib",
"ffmpeg/lib/libavdevice.dylib",
"ffmpeg/lib/libavfilter.9.12.100.dylib",
"ffmpeg/lib/libavfilter.9.dylib",
"ffmpeg/lib/libavfilter.dylib",
"ffmpeg/lib/libavformat.60.16.100.dylib",
"ffmpeg/lib/libavformat.60.dylib",
"ffmpeg/lib/libavformat.dylib",
"ffmpeg/lib/libavutil.58.29.100.dylib",
"ffmpeg/lib/libavutil.58.dylib",
"ffmpeg/lib/libavutil.dylib",
"ffmpeg/lib/libffmpeg.6.1.1.dylib",
"ffmpeg/lib/libffmpeg.6.dylib",
"ffmpeg/lib/libffmpeg.dylib",
"ffmpeg/lib/libswresample.4.12.100.dylib",
"ffmpeg/lib/libswresample.4.dylib",
"ffmpeg/lib/libswscale.7.dylib"
],
"signingIdentity": "-"
"ffmpeg/lib/libswresample.dylib",
"ffmpeg/lib/libswscale.7.5.100.dylib",
"ffmpeg/lib/libswscale.7.dylib",
"ffmpeg/lib/libswscale.dylib"
]
},
"resources": {
"locales": "locales"
Expand Down
9 changes: 9 additions & 0 deletions scripts/before_bundle.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

# Sign the app and dylib with Ad-hoc signature (tauri enfore runtime flag from codesign which cause crash)

# Prepare paths
cd "$(dirname "${BASH_SOURCE[0]}")/.." || exit

codesign -f -s - target/release/vibe
find ./target -type f -name "*.dylib" -exec codesign -f -s - {} \;

0 comments on commit af815f2

Please sign in to comment.