Skip to content

Commit

Permalink
back to simple binary in zipfile
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm1 committed Jun 21, 2023
1 parent 2ee737f commit 0baefd2
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 49 deletions.
26 changes: 0 additions & 26 deletions Info.plist.template

This file was deleted.

Binary file removed app.icns
Binary file not shown.
Binary file removed app.png
Binary file not shown.
3 changes: 0 additions & 3 deletions run.sh

This file was deleted.

23 changes: 4 additions & 19 deletions script/build
Original file line number Diff line number Diff line change
@@ -1,32 +1,17 @@
#!/bin/sh
set -e

version=0.1.1
npm run build

for f in dist/chrome-capture-for-channels-macos-*; do
codesign --remove-signature $f
done

mkdir -p dist/ChromeCaptureARM64.app/Contents/Resources
cp app.icns dist/ChromeCaptureARM64.app/Contents/Resources/app.icns
mkdir -p dist/ChromeCaptureARM64.app/Contents/MacOS
cp dist/chrome-capture-for-channels-macos-arm64 dist/ChromeCaptureARM64.app/Contents/MacOS/ChromeCapture
cp run.sh dist/ChromeCaptureARM64.app/Contents/MacOS/run.sh
cat Info.plist.template | sed -e 's,BUNDLEID,chrome-capture-for-channels-macos-arm64,g' | sed -e 's,BUNDLENAME,Chrome Capture,g' | sed -e "s,BUNDLEVERSION,$version,g" > dist/ChromeCaptureARM64.app/Contents/Info.plist
codesign -s "Developer ID Application: Fancy Bits, LLC (LVM8JB4FT5)" dist/ChromeCaptureARM64.app/Contents/MacOS/ChromeCapture
codesign -s "Developer ID Application: Fancy Bits, LLC (LVM8JB4FT5)" dist/ChromeCaptureARM64.app
zip dist/ChromeCaptureARM64.zip dist/ChromeCaptureARM64.app
codesign -s "Developer ID Application: Fancy Bits, LLC (LVM8JB4FT5)" dist/chrome-capture-for-channels-macos-arm64
zip dist/ChromeCaptureARM64.zip dist/chrome-capture-for-channels-macos-arm64

mkdir -p dist/ChromeCaptureIntel.app/Contents/Resources
cp app.icns dist/ChromeCaptureIntel.app/Contents/Resources/app.icns
mkdir -p dist/ChromeCaptureIntel.app/Contents/MacOS
cp dist/chrome-capture-for-channels-macos-x64 dist/ChromeCaptureIntel.app/Contents/MacOS/ChromeCapture
cp run.sh dist/ChromeCaptureIntel.app/Contents/MacOS/run.sh
cat Info.plist.template | sed -e 's,BUNDLEID,chrome-capture-for-channels-macos-x64,g' | sed -e 's,BUNDLENAME,Chrome Capture,g' | sed -e "s,BUNDLEVERSION,$version,g" > dist/ChromeCaptureIntel.app/Contents/Info.plist
codesign -s "Developer ID Application: Fancy Bits, LLC (LVM8JB4FT5)" dist/ChromeCaptureIntel.app/Contents/MacOS/ChromeCapture
codesign -s "Developer ID Application: Fancy Bits, LLC (LVM8JB4FT5)" dist/ChromeCaptureIntel.app
zip dist/ChromeCaptureIntel.zip dist/ChromeCaptureIntel.app
codesign -s "Developer ID Application: Fancy Bits, LLC (LVM8JB4FT5)" dist/chrome-capture-for-channels-macos-x64
zip dist/ChromeCaptureIntel.zip dist/chrome-capture-for-channels-macos-x64

xcrun notarytool submit dist/ChromeCaptureARM64.zip --keychain-profile "fancybot_deployer"
xcrun notarytool submit dist/ChromeCaptureIntel.zip --keychain-profile "fancybot_deployer"
2 changes: 1 addition & 1 deletion script/deploy
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ script/build
git tag $tag
git push --tags
gh release create $tag --generate-notes
gh release upload $tag dist/chrome-capture-for-channels-macos-* dist/chrome-capture-for-channels-win-x64.exe
gh release upload $tag dist/ChromeCapture*.zip dist/chrome-capture-for-channels-win-x64.exe

0 comments on commit 0baefd2

Please sign in to comment.