|
20 | 20 | - run: bun test |
21 | 21 | - run: bun run bundle:all |
22 | 22 | - run: bun run package:all |
| 23 | + |
| 24 | + - name: Download Codesign Client and signatures |
| 25 | + run: | |
| 26 | + curl -L -o codesign-client \ |
| 27 | + https://codesign-distribution.labs.jb.gg/codesign-client-linux-amd64 |
| 28 | + curl -L -o codesign-client.sha256 \ |
| 29 | + https://codesign-distribution.labs.jb.gg/codesign-client-linux-amd64.sha256 |
| 30 | + curl -L -o codesign-client.sha256.asc \ |
| 31 | + https://codesign-distribution.labs.jb.gg/codesign-client-linux-amd64.sha256.asc |
| 32 | + chmod +x codesign-client |
| 33 | +
|
| 34 | + - name: Import GPG public key |
| 35 | + run: | |
| 36 | + curl -o - https://download-cdn.jetbrains.com/KEYS | gpg --import - |
| 37 | +
|
| 38 | + - name: Verify SHA256 file signature |
| 39 | + run: | |
| 40 | + gpg --batch --verify codesign-client.sha256.asc codesign-client.sha256 |
| 41 | +
|
| 42 | + - name: Verify SHA256 checksum |
| 43 | + run: | |
| 44 | + sha256sum -c codesign-client.sha256 |
| 45 | +
|
| 46 | + - name: Sign Windows binary |
| 47 | + run: | |
| 48 | + unzip dist/bin/codex-acp-x64-windows.zip -d dist/bin/windows-x64 |
| 49 | + ./codesign-client -extensions "jsign_replace=true" dist/bin/windows-x64/codex-acp.exe |
| 50 | + cd dist/bin/windows-x64 && zip -r ../codex-acp-x64-windows.zip codex-acp.exe && cd - |
| 51 | +
|
| 52 | + - name: Sign macOS binaries |
| 53 | + run: | |
| 54 | + ./codesign-client \ |
| 55 | + -denoted-content-type="content-type=application/x-mac-zip" \ |
| 56 | + -extensions "mac_codesign_force=true,mac_codesign_options=runtime" \ |
| 57 | + dist/bin/codex-acp-x64-darwin.zip |
| 58 | + ./codesign-client \ |
| 59 | + -denoted-content-type="content-type=application/x-mac-zip" \ |
| 60 | + -extensions "mac_codesign_force=true,mac_codesign_options=runtime" \ |
| 61 | + dist/bin/codex-acp-arm64-darwin.zip |
| 62 | +
|
23 | 63 | - name: Create Release |
24 | 64 | uses: softprops/action-gh-release@v2 |
25 | 65 | with: |
|
0 commit comments