Skip to content

Commit

Permalink
Merge pull request #266 from b123400/codesign-certifaction
Browse files Browse the repository at this point in the history
  • Loading branch information
zdavatz authored Jul 15, 2023
2 parents 4758433 + c569300 commit c0fc579
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@ jobs:
unzip amiko_frequency_fr.db.zip
unzip drug_interactions_csv_fr.zip
rm amiko_db_full_idx_de.zip amiko_frequency_de.db.zip drug_interactions_csv_de.zip amiko_db_full_idx_fr.zip amiko_frequency_fr.db.zip drug_interactions_csv_fr.zip
- name: Sign
run: |
cd HINClient/
IDENTITY="amikoosx.certifaction"
echo "Signing certifaction"
codesign -s - -i "$IDENTITY" --entitlements Certifaction.entitlements -f ./certifaction-arm64
codesign -s - -i "$IDENTITY" --entitlements Certifaction.entitlements -f ./certifaction-x86
- name: Build
run: |
xcodebuild clean build -allowProvisioningUpdates -project AmiKo.xcodeproj -scheme AmiKo CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
Expand Down
16 changes: 16 additions & 0 deletions HINClient/Certifaction.entitlements
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?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.inherit</key>
<true/>
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.network.client</key>
<true/>
<key>com.apple.application-identifier</key>
<string>4B37356EGR.amikoosx</string>
<key>com.apple.developer.team-identifier</key>
<string>4B37356EGR</string>
</dict>
</plist>
Binary file modified HINClient/certifaction-arm64
Binary file not shown.
Binary file modified HINClient/certifaction-x86
Binary file not shown.
10 changes: 10 additions & 0 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

STEP_REMOVE_SUPPORT_FILES=true
STEP_DOWNLOAD_SUPPORT_FILES=true
STEP_CODESIGN_CERTIFACTION=true
STEP_BUILD=true
STEP_ARCHIVE=true
STEP_CREATE_PKG=true
Expand Down Expand Up @@ -70,6 +71,15 @@ done
popd > /dev/null
fi

if [ $STEP_CODESIGN_CERTIFACTION ] ; then
pushd ../HINClient
IDENTITY="amikoosx.certifaction"
echo "Signing certifaction"
codesign -s - -i "$IDENTITY" --entitlements Certifaction.entitlements -f ./certifaction-arm64
codesign -s - -i "$IDENTITY" --entitlements Certifaction.entitlements -f ./certifaction-x86
popd
fi

#-------------------------------------------------------------------------------
if [ $STEP_BUILD ] ; then
pushd ../
Expand Down

0 comments on commit c0fc579

Please sign in to comment.