Skip to content

Commit

Permalink
Tweaks to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
pierr3 committed May 31, 2024
1 parent 1575036 commit 1eb15a5
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 10 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,13 +138,6 @@ jobs:
dmg_file=$(find . -name "*.dmg" -type f)
new_dmg_file=$(echo $dmg_file | sed 's/arm64/apple-silicon/')
mv $dmg_file $new_dmg_file
- name: Codesign dmg
if: matrix.os == 'macos-latest'
run: |
cd out/make
dmg_file=$(find . -name "*.dmg" -type f)
codesign --timestamp --verbose --sign "Developer ID Application" $dmg_file
- id: relinfo
uses: pozetroninc/github-action-get-latest-release@master
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -106,3 +106,5 @@ build/

# Sentry Config File
.sentryclirc

.sign-env.sh
2 changes: 1 addition & 1 deletion backend/src/sdk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ std::unique_ptr<restinio::router::express_router_t<>> SDK::buildRouter()
.connection_close()
.done();
};

router->add_handler(
restinio::router::none_of_methods(restinio::http_method_get()), "/", methodNotAllowed);

Expand Down
18 changes: 16 additions & 2 deletions forge.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,25 @@ const canNotarize =
process.env.APPLE_NOTARIZATION_PASSWORD &&
process.env.APPLE_TEAM_ID;

console.log("isMaking", isMaking);
console.log("canNotarize", canNotarize);

const config: ForgeConfig = {
packagerConfig: {
name: "TrackAudio",
asar: true,
osxSign: isMaking ? {} : undefined,
osxSign: isMaking
? {
optionsForFile: (filePath) => {
// Here, we keep it simple and return a single entitlements.plist file.
// You can use this callback to map different sets of entitlements
// to specific files in your packaged app.
return {
entitlements: "scripts/entitlements.plist",
};
},
}
: undefined,
osxNotarize: canNotarize
? {
appleId: process.env.APPLE_ID || "",
Expand Down Expand Up @@ -57,7 +71,7 @@ const config: ForgeConfig = {
{
name: "@electron-forge/maker-dmg",
config: {
icon: "resources/AppIcon/AppIcon.icns"
icon: "resources/AppIcon/AppIcon.icns",
},
},
{
Expand Down
12 changes: 12 additions & 0 deletions scripts/entitlements.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?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>
<key>com.apple.security.cs.allow-jit</key>
<true/>
<key>com.apple.security.device.audio-input</key>
<true/>
<key>com.apple.security.device.bluetooth</key>
<true/>
</dict>
</plist>

0 comments on commit 1eb15a5

Please sign in to comment.