Skip to content

Commit 4a29b49

Browse files
authored
Merge pull request #993 from Stefterv/main
An assortment of Fixes
2 parents 945bd54 + 02e0700 commit 4a29b49

File tree

7 files changed

+31
-7
lines changed

7 files changed

+31
-7
lines changed

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Pre-releases
1+
name: Branch Builds (Legacy)
22
on:
33
push:
44
paths-ignore:

.github/workflows/pull_request.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Pull Requests
1+
name: Pull Requests (Legacy)
22
on:
33
pull_request:
44
paths-ignore:

.github/workflows/release-gradle.yml

+19-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ jobs:
134134
- name: Install Java
135135
uses: actions/setup-java@v4
136136
with:
137-
java-version: '17'
137+
java-version: '17.0.8'
138138
distribution: 'temurin'
139139
architecture: ${{ matrix.arch }}
140140
- name: Setup Gradle
@@ -153,6 +153,22 @@ jobs:
153153
ORG_GRADLE_PROJECT_compose.desktop.mac.notarization.password: ${{ secrets.PROCESSING_APP_PASSWORD }}
154154
ORG_GRADLE_PROJECT_compose.desktop.mac.notarization.teamID: ${{ secrets.PROCESSING_TEAM_ID }}
155155
ORG_GRADLE_PROJECT_snapname: ${{ vars.SNAP_NAME }}
156+
157+
- name: Sign files with Trusted Signing
158+
if: runner.os == 'Windows'
159+
uses: azure/trusted-signing-action@v0
160+
with:
161+
azure-tenant-id: ${{ secrets.AZURE_TENANT_ID }}
162+
azure-client-id: ${{ secrets.AZURE_CLIENT_ID }}
163+
azure-client-secret: ${{ secrets.AZURE_CLIENT_SECRET }}
164+
endpoint: https://eus.codesigning.azure.net/
165+
trusted-signing-account-name: ${{ secrets.AZURE_SIGNING_ACCOUNT_NAME }}
166+
certificate-profile-name: ${{ secrets.AZURE_CERTIFICATE_PROFILE_NAME }}
167+
files-folder: app/build/compose/binaries/main/msi
168+
files-folder-filter: msi
169+
file-digest: SHA256
170+
timestamp-rfc3161: http://timestamp.acs.microsoft.com
171+
timestamp-digest: SHA256
156172

157173
- name: Upload portables to release
158174
uses: svenstaro/upload-release-action@v2
@@ -173,3 +189,5 @@ jobs:
173189
run: snapcraft upload --release=beta app/build/compose/binaries/main/${{ matrix.binary }}.${{ matrix.extension }}
174190
env:
175191
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.PROCESSING_SNAPCRAFT_TOKEN }}
192+
193+

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Releases
1+
name: Releases (Legacy)
22
on:
33
release:
44
types: [published]

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -113,3 +113,5 @@ java/build/
113113

114114
.build/
115115
/app/windows/obj
116+
/java/gradle/build
117+
/java/gradle/example/.processing

app/build.gradle.kts

+2-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ compose.desktop {
5252
jvmArgs(*listOf(
5353
Pair("processing.version", rootProject.version),
5454
Pair("processing.revision", findProperty("revision") ?: Int.MAX_VALUE),
55-
Pair("processing.contributions.source", "https://download.processing.org/contribs.txt"),
55+
Pair("processing.contributions.source", "https://contributions.processing.org/contribs"),
5656
Pair("processing.download.page", "https://processing.org/download/"),
5757
Pair("processing.download.latest", "https://processing.org/download/latest.txt"),
5858
Pair("processing.tutorials", "https://processing.org/tutorials/"),
@@ -238,6 +238,7 @@ tasks.register("generateSnapConfiguration"){
238238
- x11
239239
- network
240240
- opengl
241+
- home
241242
242243
parts:
243244
processing:

app/src/processing/app/platform/LinuxPlatform.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@
3333

3434

3535
public class LinuxPlatform extends DefaultPlatform {
36-
// Switched to use ~ as the home directory for compatibility with snap
37-
String homeDir = "~";
36+
String homeDir;
3837

3938

4039
public void initBase(Base base) {
@@ -107,6 +106,10 @@ public File getSettingsFolder() throws Exception {
107106
configHome = null; // don't use non-existent folder
108107
}
109108
}
109+
String snapUserCommon = System.getenv("SNAP_USER_COMMON");
110+
if (snapUserCommon != null && !snapUserCommon.isBlank()) {
111+
configHome = new File(snapUserCommon);
112+
}
110113
// If not set properly, use the default
111114
if (configHome == null) {
112115
configHome = new File(getHomeDir(), ".config");

0 commit comments

Comments
 (0)