Skip to content

Commit 3bd4546

Browse files
committed
Let's just sign the app ourselves since we need to unpack/repack the JARS anyways
1 parent d3c2fe2 commit 3bd4546

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

.github/workflows/packaging.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ jobs:
7878
env:
7979
MAVEN_ARGS: "--batch-mode --no-transfer-progress -Dstyle.color=always"
8080
run: |
81-
mvn install -DskipTests -pl '!app-jar' -Papp-bundle -Dcodesign.identity="${{ secrets.MACOS_DEVELOPER_IDENTITY }}"
82-
bash app-osx/codesign-deps.sh ${{ secrets.MACOS_DEVELOPER_IDENTITY }}
81+
mvn install -DskipTests -pl '!app-jar,!app-windows' -Papp-bundle"
82+
bash app-osx/codesign-app.sh ${{ secrets.MACOS_DEVELOPER_IDENTITY }}
8383
bash app-osx/make-dmg.sh
8484
mv app-osx/target/*.dmg JChemPaint.dmg
8585
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,7 @@ for JARFILE in "${JARFILES[@]}"; do
3939
rm -rf $TMPDIR
4040
done
4141

42+
codesign --verbose --force --timestamp --options=runtime --entitlements $DIR/entitlements.plist --sign $MACOS_DEVELOPER_IDENTITY --deep $APPNAME
43+
4244

4345

app-osx/pom.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,6 @@
3939
<!-- We need to sign some extra parts so we will build DMG our self -->
4040
<generate>false</generate>
4141
</dmg>
42-
<codesign>
43-
<identity>${codesign.identity}</identity>
44-
</codesign>
4542
</configuration>
4643
<executions>
4744
<execution>

0 commit comments

Comments
 (0)