mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Merge branch 'main-gradle' into gradle/preprocessor
This commit is contained in:
@@ -50,7 +50,7 @@ jobs:
|
|||||||
- name: Add artifact
|
- name: Add artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: processing-${{ github.ref_name }}-${{github.sha}}-${{ matrix.os_prefix }}-${{ matrix.arch }}-gradle
|
name: processing-${{ replace(github.ref_name, '/', '-') }}-${{github.sha}}-${{ matrix.os_prefix }}-${{ matrix.arch }}-gradle
|
||||||
path: |
|
path: |
|
||||||
./app/build/compose/binaries/main/dmg/Processing-*.dmg
|
./app/build/compose/binaries/main/dmg/Processing-*.dmg
|
||||||
./app/build/compose/binaries/main/dmg/INSTRUCTIONS_FOR_TESTING.txt
|
./app/build/compose/binaries/main/dmg/INSTRUCTIONS_FOR_TESTING.txt
|
||||||
|
|||||||
@@ -72,6 +72,6 @@ jobs:
|
|||||||
- name: Add artifact
|
- name: Add artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: processing-${{ github.ref_name }}-${{github.sha}}-${{ matrix.os_prefix }}-${{ matrix.arch }}-ant
|
name: processing-${{ replace(github.ref_name, '/', '-') }}-${{github.sha}}-${{ matrix.os_prefix }}-${{ matrix.arch }}-ant
|
||||||
path: ./build/${{ matrix.os_prefix }}/processing-${{github.sha}}-${{ matrix.os_prefix}}-*
|
path: ./build/${{ matrix.os_prefix }}/processing-${{github.sha}}-${{ matrix.os_prefix}}-*
|
||||||
retention-days: 1
|
retention-days: 1
|
||||||
|
|||||||
@@ -2,6 +2,9 @@ package processing.app;
|
|||||||
|
|
||||||
import processing.app.ui.Editor;
|
import processing.app.ui.Editor;
|
||||||
|
|
||||||
|
// Stub class for backwards compatibility with the ant-build system
|
||||||
|
// This class is not used in the Gradle build system
|
||||||
|
// The actual implementation is in src/.../Schema.kt
|
||||||
public class Schema {
|
public class Schema {
|
||||||
public static Editor handleSchema(String input, Base base) {
|
public static Editor handleSchema(String input, Base base) {
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
@@ -2,6 +2,9 @@ package processing.app.contrib.ui;
|
|||||||
|
|
||||||
import processing.app.contrib.ContributionManager;
|
import processing.app.contrib.ContributionManager;
|
||||||
|
|
||||||
|
// Stub class for backwards compatibility with the ant-build system
|
||||||
|
// This class is not used in the Gradle build system
|
||||||
|
// The actual implementation is in src/.../ContributionManager.kt
|
||||||
public final class ContributionManagerKt {
|
public final class ContributionManagerKt {
|
||||||
public static void openContributionsManager() {
|
public static void openContributionsManager() {
|
||||||
ContributionManager.openLibraries();
|
ContributionManager.openLibraries();
|
||||||
|
|||||||
@@ -32,11 +32,9 @@ sourceSets{
|
|||||||
main{
|
main{
|
||||||
java{
|
java{
|
||||||
srcDirs("src")
|
srcDirs("src")
|
||||||
exclude("**/*Kt.java")
|
|
||||||
}
|
}
|
||||||
kotlin{
|
kotlin{
|
||||||
srcDirs("src")
|
srcDirs("src")
|
||||||
exclude("**/*Kt.java")
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -59,8 +57,6 @@ compose.desktop {
|
|||||||
}
|
}
|
||||||
entitlementsFile.set(project.file("entitlements.plist"))
|
entitlementsFile.set(project.file("entitlements.plist"))
|
||||||
runtimeEntitlementsFile.set(project.file("entitlements.plist"))
|
runtimeEntitlementsFile.set(project.file("entitlements.plist"))
|
||||||
// Allow swing to use the system look and feel
|
|
||||||
jvmArgs("-Dapple.awt.application.appearance=system")
|
|
||||||
}
|
}
|
||||||
windows{
|
windows{
|
||||||
iconFile = project.file("../build/windows/processing.ico")
|
iconFile = project.file("../build/windows/processing.ico")
|
||||||
|
|||||||
@@ -28,9 +28,6 @@ import java.io.IOException;
|
|||||||
import java.lang.management.ManagementFactory;
|
import java.lang.management.ManagementFactory;
|
||||||
import java.net.URISyntaxException;
|
import java.net.URISyntaxException;
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
import java.nio.file.*;
|
|
||||||
import java.nio.file.attribute.BasicFileAttributes;
|
|
||||||
import java.nio.file.attribute.PosixFilePermission;
|
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
||||||
import com.sun.jna.platform.FileUtils;
|
import com.sun.jna.platform.FileUtils;
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ import processing.core.PApplet;
|
|||||||
public class UpdateCheck {
|
public class UpdateCheck {
|
||||||
private final Base base;
|
private final Base base;
|
||||||
|
|
||||||
static private final String DOWNLOAD_URL = System.getProperty("processing.download.page","https://processing.org/download/");
|
static private final String DOWNLOAD_URL = System.getProperty("processing.download.page","https://processing.org/download/");
|
||||||
static private final String LATEST_URL = System.getProperty("processing.download.latest","https://processing.org/download/latest.txt");
|
static private final String LATEST_URL = System.getProperty("processing.download.latest","https://processing.org/download/latest.txt");
|
||||||
|
|
||||||
static private final long ONE_DAY = 24 * 60 * 60 * 1000;
|
static private final long ONE_DAY = 24 * 60 * 60 * 1000;
|
||||||
|
|||||||
@@ -770,7 +770,6 @@ public class JavaBuild {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
// TODO: Handle the java embed and Icon with the new build system
|
|
||||||
|
|
||||||
} else if (exportPlatform == PConstants.LINUX) {
|
} else if (exportPlatform == PConstants.LINUX) {
|
||||||
if (embedJava) {
|
if (embedJava) {
|
||||||
|
|||||||
Reference in New Issue
Block a user