Skip to content

Commit 8bdd702

Browse files
committed
fix(build): Correct location of local curseforge_key.txt file
Relative path bad, use absolute. It causes issues in gradle vers that have workingDir in caches.
1 parent 7c28b39 commit 8bdd702

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ app_pojavlauncher/.cxx/
1313
/jre_lwjgl3glfw/gradle/
1414
/jre_lwjgl3glfw/**/build/
1515
/jre_lwjgl3glfw/**/.gradle/
16+
/app_pojavlauncher/curseforge_key.txt

app_pojavlauncher/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def getVersionName = {
5454
def getCFApiKey = {
5555
String key = System.getenv("CURSEFORGE_API_KEY");
5656
if(key != null) return key;
57-
File curseforgeKeyFile = new File("./curseforge_key.txt");
57+
File curseforgeKeyFile = new File("$projectDir/curseforge_key.txt");
5858
if(curseforgeKeyFile.canRead() && curseforgeKeyFile.isFile()) {
5959
return curseforgeKeyFile.text;
6060
}

0 commit comments

Comments
 (0)