Skip to content

Commit

Permalink
codesign casks (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gcenx authored Mar 14, 2024
1 parent 82c6d92 commit 89c19a1
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
3 changes: 2 additions & 1 deletion Casks/game-porting-toolkit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
binary "#{appdir}/Game Porting Toolkit.app/Contents/Resources/wine/bin/wineserver"

postflight do
system "xattr", "-drs", "com.apple.quarantine", "#{appdir}/Game Porting Toolkit.app"
system "/usr/bin/xattr", "-drs", "com.apple.quarantine", "#{appdir}/Game Porting Toolkit.app"
system "/usr/bin/codesign", "--force", "--deep", "-s", "-", "#{appdir}/Game Porting Toolkit.app"
end

zap trash: [
Expand Down
3 changes: 2 additions & 1 deletion Casks/wine-crossover.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@
binary "#{appdir}/Wine Crossover.app/Contents/Resources/wine/bin/wineserver"

postflight do
system "xattr", "-drs", "com.apple.quarantine", "#{appdir}/Wine Crossover.app"
system "/usr/bin/xattr", "-drs", "com.apple.quarantine", "#{appdir}/Wine Crossover.app"
system "/usr/bin/codesign", "--force", "--deep", "-s", "-", "#{appdir}/Wine Crossover.app"
end

caveats <<~EOS
Expand Down
5 changes: 3 additions & 2 deletions Casks/wineskin-devel.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@

# Workaround issue until it's fixed in Winery
# https://github.com/Gcenx/WineskinServer/issues/96
preflight do
system "xattr", "-drs", "com.apple.quarantine", "#{appdir}/Wineskin Winery.app"
postflight do
system "/usr/bin/xattr", "-drs", "com.apple.quarantine", "#{appdir}/Wineskin Winery.app"
system "/usr/bin/codesign", "--force", "--deep", "-s", "-", "#{appdir}/Wineskin Winery.app"
system_command "/bin/mkdir", args: ["-p", "/Users/#{ENV.fetch("USER")}/Applications/Wineskin"], sudo: false
end

Expand Down
5 changes: 3 additions & 2 deletions Casks/wineskin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@

# Workaround issue until it's fixed in Winery
# https://github.com/Gcenx/WineskinServer/issues/96
preflight do
system "xattr", "-drs", "com.apple.quarantine", "#{appdir}/Wineskin Winery.app"
postflight do
system "/usr/bin/xattr", "-drs", "com.apple.quarantine", "#{appdir}/Wineskin Winery.app"
system "/usr/bin/codesign", "--force", "--deep", "-s", "-", "#{appdir}/Wineskin Winery.app"
system_command "/bin/mkdir", args: ["-p", "/Users/#{ENV.fetch("USER")}/Applications/Wineskin"], sudo: false
end

Expand Down

0 comments on commit 89c19a1

Please sign in to comment.