mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-10 09:12:09 +10:00
build linux
This commit is contained in:
+96
-43
@@ -260,47 +260,6 @@
|
|||||||
</target>
|
</target>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
<execution>
|
|
||||||
<id>sign-jar-launcher</id>
|
|
||||||
<phase>package</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>run</goal>
|
|
||||||
</goals>
|
|
||||||
<configuration>
|
|
||||||
<target>
|
|
||||||
<!-- Extract JavaAppLauncher -->
|
|
||||||
<unzip src="${project.build.directory}/diylc.jar" dest="${project.build.directory}/jar-contents">
|
|
||||||
<patternset>
|
|
||||||
<include name="com/oracle/appbundler/JavaAppLauncher"/>
|
|
||||||
</patternset>
|
|
||||||
</unzip>
|
|
||||||
|
|
||||||
<!-- Make it executable -->
|
|
||||||
<chmod file="${project.build.directory}/jar-contents/com/oracle/appbundler/JavaAppLauncher" perm="755"/>
|
|
||||||
|
|
||||||
<!-- Sign the launcher -->
|
|
||||||
<exec executable="codesign" failonerror="true">
|
|
||||||
<arg value="--force"/>
|
|
||||||
<arg value="--sign"/>
|
|
||||||
<arg value="${env.APPLE_DEVELOPER_IDENTITY}"/>
|
|
||||||
<arg value="--timestamp"/>
|
|
||||||
<arg value="--options"/>
|
|
||||||
<arg value="runtime"/>
|
|
||||||
<arg value="--entitlements"/>
|
|
||||||
<arg value="${project.basedir}/deploy/mac/entitlements.plist"/>
|
|
||||||
<arg value="--all-architectures"/>
|
|
||||||
<arg value="--strict"/>
|
|
||||||
<arg value="--verbose"/>
|
|
||||||
<arg value="${project.build.directory}/jar-contents/com/oracle/appbundler/JavaAppLauncher"/>
|
|
||||||
</exec>
|
|
||||||
|
|
||||||
<!-- Update the jar with signed launcher -->
|
|
||||||
<jar destfile="${project.build.directory}/diylc.jar" update="true">
|
|
||||||
<fileset dir="${project.build.directory}/jar-contents"/>
|
|
||||||
</jar>
|
|
||||||
</target>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
@@ -539,9 +498,17 @@
|
|||||||
<fileset dir="${appdir.dir}" />
|
<fileset dir="${appdir.dir}" />
|
||||||
</copy>
|
</copy>
|
||||||
|
|
||||||
<!-- Run AppImageTool in Docker -->
|
<!-- Ensure proper permissions in Docker volume -->
|
||||||
|
<exec executable="chmod" failonerror="true" osfamily="mac">
|
||||||
|
<arg line="-R 755 ${project.build.directory}/docker-tmp/AppDir/AppRun" />
|
||||||
|
</exec>
|
||||||
|
<exec executable="chmod" failonerror="true" osfamily="mac">
|
||||||
|
<arg line="-R 755 ${project.build.directory}/docker-tmp/AppDir/usr/bin/diylc.sh" />
|
||||||
|
</exec>
|
||||||
|
|
||||||
|
<!-- Run AppImageTool in Docker with proper volume mounting -->
|
||||||
<exec executable="docker" failonerror="true" osfamily="mac">
|
<exec executable="docker" failonerror="true" osfamily="mac">
|
||||||
<arg line="run --rm -v "${project.build.directory}/docker-tmp:/workspace" -w /workspace appimagecrafters/appimage-builder:latest /bin/bash -c "ARCH=x86_64 appimagetool AppDir ${appimage.output.file}"" />
|
<arg line="run --rm -v "${project.build.directory}/docker-tmp:/workspace" -w /workspace appimagecrafters/appimage-builder:latest /bin/bash -c "chmod +x AppDir/AppRun AppDir/usr/bin/diylc.sh && ARCH=x86_64 appimagetool AppDir ${appimage.output.file}"" />
|
||||||
</exec>
|
</exec>
|
||||||
|
|
||||||
<!-- Copy the AppImage to the build directory -->
|
<!-- Copy the AppImage to the build directory -->
|
||||||
@@ -703,6 +670,49 @@
|
|||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
|
|
||||||
|
<!-- Sign JAR launcher -->
|
||||||
|
<execution>
|
||||||
|
<id>sign-jar-launcher</id>
|
||||||
|
<phase>package</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>run</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<target>
|
||||||
|
<!-- Extract JavaAppLauncher -->
|
||||||
|
<unzip src="${project.build.directory}/diylc.jar" dest="${project.build.directory}/jar-contents">
|
||||||
|
<patternset>
|
||||||
|
<include name="com/oracle/appbundler/JavaAppLauncher"/>
|
||||||
|
</patternset>
|
||||||
|
</unzip>
|
||||||
|
|
||||||
|
<!-- Make it executable -->
|
||||||
|
<chmod file="${project.build.directory}/jar-contents/com/oracle/appbundler/JavaAppLauncher" perm="755"/>
|
||||||
|
|
||||||
|
<!-- Sign the launcher -->
|
||||||
|
<exec executable="codesign" failonerror="true">
|
||||||
|
<arg value="--force"/>
|
||||||
|
<arg value="--sign"/>
|
||||||
|
<arg value="${env.APPLE_DEVELOPER_IDENTITY}"/>
|
||||||
|
<arg value="--timestamp"/>
|
||||||
|
<arg value="--options"/>
|
||||||
|
<arg value="runtime"/>
|
||||||
|
<arg value="--entitlements"/>
|
||||||
|
<arg value="${project.basedir}/deploy/mac/entitlements.plist"/>
|
||||||
|
<arg value="--all-architectures"/>
|
||||||
|
<arg value="--strict"/>
|
||||||
|
<arg value="--verbose"/>
|
||||||
|
<arg value="${project.build.directory}/jar-contents/com/oracle/appbundler/JavaAppLauncher"/>
|
||||||
|
</exec>
|
||||||
|
|
||||||
|
<!-- Update the jar with signed launcher -->
|
||||||
|
<jar destfile="${project.build.directory}/diylc.jar" update="true">
|
||||||
|
<fileset dir="${project.build.directory}/jar-contents"/>
|
||||||
|
</jar>
|
||||||
|
</target>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
|
||||||
<!-- Create macOS app bundle -->
|
<!-- Create macOS app bundle -->
|
||||||
<execution>
|
<execution>
|
||||||
<id>create-mac-bundle</id>
|
<id>create-mac-bundle</id>
|
||||||
@@ -973,6 +983,49 @@
|
|||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
|
|
||||||
|
<!-- Sign JAR launcher -->
|
||||||
|
<execution>
|
||||||
|
<id>sign-jar-launcher</id>
|
||||||
|
<phase>package</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>run</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<target>
|
||||||
|
<!-- Extract JavaAppLauncher -->
|
||||||
|
<unzip src="${project.build.directory}/diylc.jar" dest="${project.build.directory}/jar-contents">
|
||||||
|
<patternset>
|
||||||
|
<include name="com/oracle/appbundler/JavaAppLauncher"/>
|
||||||
|
</patternset>
|
||||||
|
</unzip>
|
||||||
|
|
||||||
|
<!-- Make it executable -->
|
||||||
|
<chmod file="${project.build.directory}/jar-contents/com/oracle/appbundler/JavaAppLauncher" perm="755"/>
|
||||||
|
|
||||||
|
<!-- Sign the launcher -->
|
||||||
|
<exec executable="codesign" failonerror="true">
|
||||||
|
<arg value="--force"/>
|
||||||
|
<arg value="--sign"/>
|
||||||
|
<arg value="${env.APPLE_DEVELOPER_IDENTITY}"/>
|
||||||
|
<arg value="--timestamp"/>
|
||||||
|
<arg value="--options"/>
|
||||||
|
<arg value="runtime"/>
|
||||||
|
<arg value="--entitlements"/>
|
||||||
|
<arg value="${project.basedir}/deploy/mac/entitlements.plist"/>
|
||||||
|
<arg value="--all-architectures"/>
|
||||||
|
<arg value="--strict"/>
|
||||||
|
<arg value="--verbose"/>
|
||||||
|
<arg value="${project.build.directory}/jar-contents/com/oracle/appbundler/JavaAppLauncher"/>
|
||||||
|
</exec>
|
||||||
|
|
||||||
|
<!-- Update the jar with signed launcher -->
|
||||||
|
<jar destfile="${project.build.directory}/diylc.jar" update="true">
|
||||||
|
<fileset dir="${project.build.directory}/jar-contents"/>
|
||||||
|
</jar>
|
||||||
|
</target>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
|
||||||
<!-- Create macOS app bundle -->
|
<!-- Create macOS app bundle -->
|
||||||
<execution>
|
<execution>
|
||||||
<id>create-mac-bundle</id>
|
<id>create-mac-bundle</id>
|
||||||
|
|||||||
Reference in New Issue
Block a user