Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
104 additions
and
40 deletions.
There are no files selected for viewing
Binary file modified
BIN
-249 KB
(100%)
Medis.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...s.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libnode.dylib
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-9.63 KB
(47%)
Medis.app/Contents/Frameworks/Medis Helper EH.app/Contents/MacOS/Medis Helper EH
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-9.63 KB
(47%)
Medis.app/Contents/Frameworks/Medis Helper NP.app/Contents/MacOS/Medis Helper NP
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-9.63 KB
(47%)
Medis.app/Contents/Frameworks/Medis Helper.app/Contents/MacOS/Medis Helper
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,36 @@ | ||
#!/bin/bash | ||
mkdir sign | ||
cp -r Medis.app sign | ||
|
||
# Name of your app. | ||
APP="Medis" | ||
# The path of you app to sign. | ||
APP_PATH="sign/Medis.app" | ||
APP_PATH="sign/$APP.app" | ||
# The path to the location you want to put the signed package. | ||
RESULT_PATH="$APP.pkg" | ||
# The name of certificates you requested. | ||
APP_KEY="3rd Party Mac Developer Application: Zihua Li (35DFNA47LC)" | ||
INSTALLER_KEY="3rd Party Mac Developer Installer: Zihua Li (35DFNA47LC)" | ||
|
||
FRAMEWORKS_PATH="$APP_PATH/Contents/Frameworks" | ||
FW_PATH="$APP_PATH/Contents/Frameworks" | ||
|
||
mkdir sign | ||
cp -a "$APP.app" sign | ||
|
||
echo "Signing..." | ||
codesign --verbose -fs "$APP_KEY" --entitlements child.plist "$FW_PATH/Electron Framework.framework/Libraries/libnode.dylib" | ||
codesign --verbose -fs "$APP_KEY" --entitlements child.plist "$FW_PATH/Electron Framework.framework/Versions/A" | ||
codesign --verbose -fs "$APP_KEY" --entitlements child.plist "$FW_PATH/$APP Helper EH.app" | ||
codesign --verbose -fs "$APP_KEY" --entitlements child.plist "$FW_PATH/$APP Helper NP.app" | ||
codesign --verbose -fs "$APP_KEY" --entitlements child.plist "$FW_PATH/$APP Helper.app" | ||
codesign --verbose -fs "$APP_KEY" --entitlements parent.plist "$APP_PATH" | ||
|
||
echo "" | ||
echo "Verifying signatures..." | ||
codesign --verify --deep --display --verbose=4 "$APP_PATH" | ||
|
||
codesign --deep -fs "$APP_KEY" --entitlements child.plist "$FRAMEWORKS_PATH/Electron Framework.framework/Libraries/libnode.dylib" | ||
codesign --deep -fs "$APP_KEY" --entitlements child.plist "$FRAMEWORKS_PATH/Electron Framework.framework/Electron Framework" | ||
codesign --deep -fs "$APP_KEY" --entitlements child.plist "$FRAMEWORKS_PATH/Electron Framework.framework/" | ||
codesign --deep -fs "$APP_KEY" --entitlements child.plist "$FRAMEWORKS_PATH/$APP Helper.app/" | ||
codesign --deep -fs "$APP_KEY" --entitlements child.plist "$FRAMEWORKS_PATH/$APP Helper EH.app/" | ||
codesign --deep -fs "$APP_KEY" --entitlements child.plist "$FRAMEWORKS_PATH/$APP Helper NP.app/" | ||
codesign --deep -fs "$APP_KEY" --entitlements child.plist "$APP_PATH/Contents/MacOS/Electron" | ||
codesign --deep -fs "$APP_KEY" --entitlements parent.plist "$APP_PATH" | ||
productbuild --component "$APP_PATH" /Applications --sign "$INSTALLER_KEY" "$RESULT_PATH" | ||
|
||
# rm -rf sign | ||
# echo "" | ||
# echo "Veriyfing Gatekeeper acceptance..." | ||
# spctl --ignore-cache --no-cache --assess --type execute --verbose=4 "$APP_PATH" | ||
|
||
rm -rf sign |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash | ||
|
||
APP_PATH="Medis.app" | ||
FRAMEWORKS_PATH="$APP_PATH/Contents/Frameworks" | ||
|
||
perl -pi -e 's/Electron/Medis/g' "$APP_PATH/Contents/Info.plist" | ||
perl -pi -e 's/com.github.electron/li.zihua.medis/g' "$APP_PATH/Contents/Info.plist" | ||
mv "$FRAMEWORKS_PATH/Electron Helper EH.app" "$FRAMEWORKS_PATH/Medis Helper EH.app" | ||
mv "$FRAMEWORKS_PATH/Electron Helper NP.app" "$FRAMEWORKS_PATH/Medis Helper NP.app" | ||
mv "$FRAMEWORKS_PATH/Electron Helper.app" "$FRAMEWORKS_PATH/Medis Helper.app" | ||
|
||
perl -pi -e 's/Electron/Medis/g' "$FRAMEWORKS_PATH/Medis Helper EH.app/Contents/Info.plist" | ||
perl -pi -e 's/Electron/Medis/g' "$FRAMEWORKS_PATH/Medis Helper NP.app/Contents/Info.plist" | ||
perl -pi -e 's/Electron/Medis/g' "$FRAMEWORKS_PATH/Medis Helper.app/Contents/Info.plist" | ||
|
||
perl -pi -e 's/com.github.electron/li.zihua.medis/g' "$FRAMEWORKS_PATH/Medis Helper EH.app/Contents/Info.plist" | ||
perl -pi -e 's/com.github.electron/li.zihua.medis/g' "$FRAMEWORKS_PATH/Medis Helper NP.app/Contents/Info.plist" | ||
perl -pi -e 's/com.github.electron/li.zihua.medis/g' "$FRAMEWORKS_PATH/Medis Helper.app/Contents/Info.plist" | ||
|
||
rm "$APP_PATH/Contents/Resources/atom.icns" | ||
# rm "$APP_PATH/Contents/Resources/atom.asar" | ||
cp "icns/MyIcon.icns" "$APP_PATH/Contents/Resources/atom.icns" | ||
|
||
mv "$FRAMEWORKS_PATH/Medis Helper EH.app/Contents/MacOS/Electron Helper EH" "$FRAMEWORKS_PATH/Medis Helper EH.app/Contents/MacOS/Medis Helper EH" | ||
mv "$FRAMEWORKS_PATH/Medis Helper NP.app/Contents/MacOS/Electron Helper NP" "$FRAMEWORKS_PATH/Medis Helper NP.app/Contents/MacOS/Medis Helper NP" | ||
mv "$FRAMEWORKS_PATH/Medis Helper.app/Contents/MacOS/Electron Helper" "$FRAMEWORKS_PATH/Medis Helper.app/Contents/MacOS/Medis Helper" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters