Compare commits

..

42 Commits

Author SHA1 Message Date
Fritz Windisch
eb01c1e80f Change to corretto 2025-02-21 09:51:49 +01:00
Fritz Windisch
a7cf94c435 Change to corretto 2025-02-21 09:42:28 +01:00
Fritz Windisch
a45b16d0ab Change to temurin 2025-02-21 09:37:38 +01:00
Fritz Windisch
c268c977ab Update upload-artifact action 2025-02-21 09:33:35 +01:00
Friwi
fe2e83ae9e Update install_macos_dependencies.sh 2025-02-21 09:30:25 +01:00
Friwi
56cec2a924 Update build-macosx-arm64.yml 2025-02-21 09:25:50 +01:00
Friwi
fbf1c72932 Update build-macosx-amd64.yml 2025-02-21 09:25:33 +01:00
Friwi
a668fd9368 Update build-all.yml 2025-02-21 09:25:15 +01:00
Friwi
72331273d2 No longer notarize the framework 2024-03-08 09:02:41 +01:00
Friwi
ff30b8d44f Update macosx_codesign.sh 2024-01-16 19:21:32 +01:00
Friwi
ea8fdd910f Update macosx_notarize.sh 2024-01-16 19:07:35 +01:00
Friwi
e4cf9046f6 Update macosx_notarize.sh 2024-01-16 18:35:17 +01:00
Friwi
af9b8de088 Update macosx_notarize.sh 2024-01-16 18:23:48 +01:00
Friwi
5c2aed1e6e Rollback 2024-01-16 18:21:34 +01:00
Friwi
1b6ca87f95 Update macosx_codesign.sh 2024-01-16 18:05:14 +01:00
Friwi
2791e80fbd Update macosx_codesign.sh 2024-01-16 17:25:28 +01:00
Friwi
69fe5607fe Update macosx_codesign.sh 2024-01-16 17:16:37 +01:00
Friwi
da859aba74 Update macosx_notarize.sh 2024-01-16 17:13:39 +01:00
Friwi
2a837a2972 Update macosx_notarize.sh 2024-01-16 17:03:25 +01:00
Friwi
0d81f8bb0e Update macosx_notarize.sh 2024-01-16 16:50:08 +01:00
Friwi
ac6e95a0fe Update macosx_codesign.sh 2024-01-16 16:46:13 +01:00
Friwi
8209cae757 Update macosx_codesign.sh 2024-01-16 16:33:17 +01:00
Friwi
ca106fb3d4 Add bogus dir so staple action works again? 2024-01-16 16:18:24 +01:00
Friwi
4b0b6038f5 Update build-all.yml 2024-01-16 15:55:39 +01:00
Friwi
76603285f2 Update build-macosx-arm64.yml 2024-01-16 15:55:01 +01:00
Friwi
2c2aad9a15 Update install_macos_dependencies.sh 2024-01-16 15:51:53 +01:00
Friwi
337fe4679d Update build-macosx-amd64.yml 2024-01-16 15:51:28 +01:00
Friwi
e4f8565721 Update install_macos_dependencies.sh 2023-12-19 13:50:27 +01:00
Friwi
be672489ad Update install_macos_dependencies.sh 2023-12-19 11:24:22 +01:00
Friwi
ff5fc9020a Update install_macos_dependencies.sh 2023-12-19 11:18:10 +01:00
Friwi
64bb73c837 Update install_macos_dependencies.sh 2023-12-19 11:13:22 +01:00
Friwi
47ff1bd3ea Update install_macos_dependencies.sh 2023-12-14 12:09:27 +01:00
Friwi
e9aeb06788 Update install_macos_dependencies.sh 2023-12-14 12:03:25 +01:00
Friwi
cf017d26fe Update install_macos_dependencies.sh 2023-12-14 12:00:15 +01:00
Friwi
3c775d3765 Update install_macos_dependencies.sh 2023-12-14 11:52:39 +01:00
Friwi
1a11a80d67 Update install_macos_dependencies.sh 2023-12-08 13:52:20 +01:00
Friwi
4cea794a99 Add six as dependency 2023-12-08 13:47:50 +01:00
Friwi
5b834e3e56 Update compile_macosx.sh 2023-12-08 13:47:04 +01:00
Friwi
93c173340a Update compile_macosx.sh 2023-12-08 13:27:16 +01:00
Friwi
0bf27250e3 Check folder existence before moving 2023-10-06 13:20:21 +02:00
Friwi
b6c0abdd15 Only export binary distribution due to disk space of github runners 2023-10-06 12:39:52 +02:00
Fritz Windisch
a88915018e Update builder for versions > 110 2023-08-07 15:38:47 +02:00
13 changed files with 51 additions and 25 deletions

View File

@@ -191,7 +191,7 @@ jobs:
build-macosx-amd64:
runs-on: macos-12
runs-on: macos-latest
needs: create-release
permissions:
contents: write
@@ -206,7 +206,10 @@ jobs:
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'adopt'
distribution: 'corretto'
- uses: actions/setup-python@v5
with:
python-version: '3.10.11'
- name: Install Apple certificate
env:
BUILD_CERTIFICATE_BASE64: ${{ secrets.APPLE_BUILD_CERTIFICATE_BASE64 }}
@@ -258,7 +261,7 @@ jobs:
build-macosx-arm64:
runs-on: macos-12
runs-on: macos-latest
needs: create-release
permissions:
contents: write
@@ -273,7 +276,10 @@ jobs:
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'adopt'
distribution: 'corretto'
- uses: actions/setup-python@v5
with:
python-version: '3.10.11'
- name: Install Apple certificate
env:
BUILD_CERTIFICATE_BASE64: ${{ secrets.APPLE_BUILD_CERTIFICATE_BASE64 }}

View File

@@ -31,7 +31,7 @@ jobs:
./compile_linux.sh amd64 Release ${{ github.event.inputs.repo }} ${{ github.event.inputs.ref }}
-
name: Export artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: linux-amd64.tar.gz
path: out/binary_distrib.tar.gz

View File

@@ -31,7 +31,7 @@ jobs:
./compile_linux.sh arm/v6 Release ${{ github.event.inputs.repo }} ${{ github.event.inputs.ref }}
-
name: Export artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: linux-arm.tar.gz
path: out/binary_distrib.tar.gz

View File

@@ -31,7 +31,7 @@ jobs:
./compile_linux.sh arm64 Release ${{ github.event.inputs.repo }} ${{ github.event.inputs.ref }}
-
name: Export artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: linux-arm64.tar.gz
path: out/binary_distrib.tar.gz

View File

@@ -14,7 +14,7 @@ on:
jobs:
build-macosx-amd64:
runs-on: macos-12
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
-
@@ -26,7 +26,10 @@ jobs:
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'adopt'
distribution: 'corretto'
- uses: actions/setup-python@v5
with:
python-version: '3.10.11'
- name: Install Apple certificate
env:
BUILD_CERTIFICATE_BASE64: ${{ secrets.APPLE_BUILD_CERTIFICATE_BASE64 }}
@@ -66,7 +69,7 @@ jobs:
rm -rf "${HOME}/private_keys"
-
name: Export artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: macosx-amd64.tar.gz
path: out/binary_distrib.tar.gz

View File

@@ -14,7 +14,7 @@ on:
jobs:
build-macosx-arm64:
runs-on: macos-12
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
-
@@ -26,7 +26,10 @@ jobs:
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'adopt'
distribution: 'corretto'
- uses: actions/setup-python@v5
with:
python-version: '3.10.11'
- name: Install Apple certificate
env:
BUILD_CERTIFICATE_BASE64: ${{ secrets.APPLE_BUILD_CERTIFICATE_BASE64 }}
@@ -66,7 +69,7 @@ jobs:
rm -rf "${HOME}/private_keys"
-
name: Export artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: macosx-arm64.tar.gz
path: out/binary_distrib.tar.gz

View File

@@ -24,7 +24,7 @@ jobs:
compile_windows.bat amd64 Release ${{ github.event.inputs.repo }} ${{ github.event.inputs.ref }}
-
name: Export artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: windows-amd64.tar.gz
path: out/binary_distrib.tar.gz

View File

@@ -24,7 +24,7 @@ jobs:
compile_windows.bat arm64 Release ${{ github.event.inputs.repo }} ${{ github.event.inputs.ref }}
-
name: Export artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: windows-arm64.tar.gz
path: out/binary_distrib.tar.gz

View File

@@ -24,7 +24,7 @@ jobs:
compile_windows.bat 386 Release ${{ github.event.inputs.repo }} ${{ github.event.inputs.ref }}
-
name: Export artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: windows-i386.tar.gz
path: out/binary_distrib.tar.gz

View File

@@ -32,7 +32,7 @@ RUN ./run_linux.sh
#Export built files
FROM scratch AS export-stage
COPY --from=stage /jcef/binary_distrib.tar.gz .
COPY --from=stage /jcef/target target
COPY --from=stage /jcef/third_party third_party
COPY --from=stage /jcef/buildtools buildtools
COPY --from=stage /jcef/jcef_build jcef_build
#COPY --from=stage /jcef/target target
#COPY --from=stage /jcef/third_party third_party
#COPY --from=stage /jcef/buildtools buildtools
#COPY --from=stage /jcef/jcef_build jcef_build

View File

@@ -70,9 +70,13 @@ if [ -f "out/buildtools/clang-format" ]; then
fi
#Move jcef_build
rm -rf jcef/jcef_build
mv out/jcef_build jcef/jcef_build
if [ -f "out/jcef_build" ]; then
rm -rf jcef/jcef_build
mv out/jcef_build jcef/jcef_build
fi
#Move target to binary_distrib
rm -rf jcef/binary_distrib
mv out/target jcef/binary_distrib
if [ -f "out/target" ]; then
rm -rf jcef/binary_distrib
mv out/target jcef/binary_distrib
fi

View File

@@ -28,6 +28,7 @@ chmod +x macosx_codesign_zip.sh
#Sign helpers
echo "Signing helpers..."
cd "$( dirname "$0" )"
codesign --force --options runtime --entitlements "$ENTITLEMENTS_HELPER" --sign "$2" --timestamp --verbose "$APP_DIR/$APP_NAME/$FRAMEWORKS_DIR/jcef Helper.app"
bash macosx_notarize.sh "$APP_DIR/$APP_NAME/$FRAMEWORKS_DIR/jcef Helper.app" "$2" $3 org.jcef.jcef.helper $4 $5 $6
codesign --force --options runtime --entitlements "$ENTITLEMENTS_HELPER" --sign "$2" --timestamp --verbose "$APP_DIR/$APP_NAME/$FRAMEWORKS_DIR/jcef Helper (GPU).app"
@@ -36,14 +37,16 @@ codesign --force --options runtime --entitlements "$ENTITLEMENTS_HELPER" --sign
bash macosx_notarize.sh "$APP_DIR/$APP_NAME/$FRAMEWORKS_DIR/jcef Helper (Plugin).app" "$2" $3 org.jcef.jcef.helper.plugin $4 $5 $6
codesign --force --options runtime --entitlements "$ENTITLEMENTS_HELPER" --sign "$2" --timestamp --verbose "$APP_DIR/$APP_NAME/$FRAMEWORKS_DIR/jcef Helper (Renderer).app"
bash macosx_notarize.sh "$APP_DIR/$APP_NAME/$FRAMEWORKS_DIR/jcef Helper (Renderer).app" "$2" $3 org.jcef.jcef.helper.renderer $4 $5 $6
codesign --force --options runtime --entitlements "$ENTITLEMENTS_HELPER" --sign "$2" --timestamp --verbose "$APP_DIR/$APP_NAME/$FRAMEWORKS_DIR/jcef Helper (Alerts).app"
bash macosx_notarize.sh "$APP_DIR/$APP_NAME/$FRAMEWORKS_DIR/jcef Helper (Alerts).app" "$2" $3 org.jcef.jcef.helper.alerts $4 $5 $6
#Sign libraries and framework
echo "Signing libraries and framework..."
codesign --force --options runtime --entitlements "$ENTITLEMENTS_BROWSER" --sign "$2" --timestamp --verbose "$APP_DIR/$APP_NAME/$FRAMEWORKS_DIR/$FRAMEWORK_NAME/Libraries/libEGL.dylib"
codesign --force --options runtime --entitlements "$ENTITLEMENTS_BROWSER" --sign "$2" --timestamp --verbose "$APP_DIR/$APP_NAME/$FRAMEWORKS_DIR/$FRAMEWORK_NAME/Libraries/libGLESv2.dylib"
codesign --force --options runtime --entitlements "$ENTITLEMENTS_BROWSER" --sign "$2" --timestamp --verbose "$APP_DIR/$APP_NAME/$FRAMEWORKS_DIR/$FRAMEWORK_NAME/Libraries/libvk_swiftshader.dylib"
codesign --force --options runtime --entitlements "$ENTITLEMENTS_BROWSER" --sign "$2" --timestamp --verbose "$APP_DIR/$APP_NAME/$FRAMEWORKS_DIR/$FRAMEWORK_NAME/Chromium Embedded Framework"
codesign --force --options runtime --entitlements "$ENTITLEMENTS_BROWSER" --sign "$2" --timestamp --verbose "$APP_DIR/$APP_NAME/$FRAMEWORKS_DIR/$FRAMEWORK_NAME"
bash macosx_notarize.sh "$APP_DIR/$APP_NAME/$FRAMEWORKS_DIR/$FRAMEWORK_NAME" "$2" $3 org.cef.framework $4 $5 $6
codesign --force --options runtime --entitlements "$ENTITLEMENTS_BROWSER" --sign "$2" --timestamp --verbose "$APP_DIR/$APP_NAME/Contents/Java/libjcef.dylib"
bash macosx_codesign_zip.sh "$APP_DIR/$APP_NAME/Contents/Java/gluegen-rt-natives-macosx-universal.jar" "natives/macosx-universal/libgluegen_rt.dylib" "$2"
bash macosx_codesign_zip.sh "$APP_DIR/$APP_NAME/Contents/Java/jogl-all-natives-macosx-universal.jar" "natives/macosx-universal/libnativewindow_awt.dylib" "$2"
@@ -51,6 +54,7 @@ bash macosx_codesign_zip.sh "$APP_DIR/$APP_NAME/Contents/Java/jogl-all-natives-m
bash macosx_codesign_zip.sh "$APP_DIR/$APP_NAME/Contents/Java/jogl-all-natives-macosx-universal.jar" "natives/macosx-universal/libjogl_mobile.dylib" "$2"
bash macosx_codesign_zip.sh "$APP_DIR/$APP_NAME/Contents/Java/jogl-all-natives-macosx-universal.jar" "natives/macosx-universal/libnewt_head.dylib" "$2"
bash macosx_codesign_zip.sh "$APP_DIR/$APP_NAME/Contents/Java/jogl-all-natives-macosx-universal.jar" "natives/macosx-universal/libjogl_desktop.dylib" "$2"
codesign --force --options runtime --entitlements "$ENTITLEMENTS_BROWSER" --sign "$2" --timestamp --verbose "$APP_DIR/$APP_NAME/Contents/MacOS/JavaAppLauncher"
codesign --force --options runtime --entitlements "$ENTITLEMENTS_BROWSER" --sign "$2" --timestamp --verbose "$APP_DIR/$APP_NAME"
bash macosx_notarize.sh "$APP_DIR/$APP_NAME" "$2" $3 org.jcef.jcef $4 $5 $6

View File

@@ -1,3 +1,9 @@
#!/bin/bash
PYTHON=python3
brew install ninja
brew install six
"$PYTHON" -m pip list
echo "from six.moves import configparser" | "$PYTHON" && echo "Success importing stuff from six moves python module"