Skip to content

Commit 6cd1a46

Browse files
committed
Replicate upstream changes for native
1 parent e357ca9 commit 6cd1a46

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/compile.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ jobs:
110110
- name: Upload nativeJavaApplicationStub.x86_64 asset
111111
uses: actions/upload-release-asset@v1
112112
env:
113-
GITHUB_TOKEN: ${{ secrets.GH_API_PERSONAL_ACCESS_TOKEN }}
113+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
114114
with:
115115
upload_url: ${{ needs.draft_release.outputs.upload_url }}
116116
asset_name: nativeJavaApplicationStub.x86_64
@@ -120,7 +120,7 @@ jobs:
120120
- name: Upload nativeJavaApplicationStub.arm64 asset
121121
uses: actions/upload-release-asset@v1
122122
env:
123-
GITHUB_TOKEN: ${{ secrets.GH_API_PERSONAL_ACCESS_TOKEN }}
123+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
124124
with:
125125
upload_url: ${{ needs.draft_release.outputs.upload_url }}
126126
asset_name: nativeJavaApplicationStub.arm64
@@ -130,7 +130,7 @@ jobs:
130130
- name: Upload nativeJavaApplicationStub asset
131131
uses: actions/upload-release-asset@v1
132132
env:
133-
GITHUB_TOKEN: ${{ secrets.GH_API_PERSONAL_ACCESS_TOKEN }}
133+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
134134
with:
135135
upload_url: ${{ needs.draft_release.outputs.upload_url }}
136136
asset_name: nativeJavaApplicationStub

src/nativeStub.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ int main(int argc, char** argv) {
1717
NSString *MSG_INSTALL_JAVA=NSLocalizedString(@"You need to have JAVA installed on your Mac!\nVisit java.com for installation instructions...", nil);
1818
NSString *MSG_LATER=NSLocalizedString(@"Later", nil);
1919
NSString *MSG_VISIT_JAVA_DOT_COM=NSLocalizedString(@"Java by Oracle", nil);
20-
NSString *MSG_VISIT_ADOPTOPENJDK=NSLocalizedString(@"Java by Adoptium", nil);
20+
NSString *MSG_VISIT_ADOPTIUM=NSLocalizedString(@"Java by Adoptium", nil);
2121

2222
NSBundle *main = [NSBundle mainBundle];
2323
NSDictionary *info = [main infoDictionary];
@@ -314,7 +314,7 @@ int main(int argc, char** argv) {
314314
[alert setInformativeText:[NSString stringWithFormat:@"%@\n%@", expandedMessage, MSG_NO_SUITABLE_JAVA_CHECK]];
315315
[alert addButtonWithTitle:MSG_LATER];
316316
[alert addButtonWithTitle:MSG_VISIT_JAVA_DOT_COM];
317-
[alert addButtonWithTitle:MSG_VISIT_ADOPTOPENJDK];
317+
[alert addButtonWithTitle:MSG_VISIT_ADOPTIUM];
318318
NSModalResponse res = [alert runModal];
319319
if(res == NSAlertSecondButtonReturn) {
320320
[[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@"https://www.java.com/download/"]];
@@ -329,7 +329,7 @@ int main(int argc, char** argv) {
329329
[alert setInformativeText:MSG_INSTALL_JAVA];
330330
[alert addButtonWithTitle:MSG_LATER];
331331
[alert addButtonWithTitle:MSG_VISIT_JAVA_DOT_COM];
332-
[alert addButtonWithTitle:MSG_VISIT_ADOPTOPENJDK];
332+
[alert addButtonWithTitle:MSG_VISIT_ADOPTIUM];
333333
NSModalResponse res = [alert runModal];
334334
if(res == NSAlertSecondButtonReturn) {
335335
[[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@"https://www.java.com/download/"]];

0 commit comments

Comments
 (0)