mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2026-06-11 02:34:29 -04:00
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.
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -13,3 +13,4 @@ app_pojavlauncher/.cxx/
|
||||
/jre_lwjgl3glfw/gradle/
|
||||
/jre_lwjgl3glfw/**/build/
|
||||
/jre_lwjgl3glfw/**/.gradle/
|
||||
/app_pojavlauncher/curseforge_key.txt
|
||||
|
||||
@@ -54,7 +54,7 @@ def getVersionName = {
|
||||
def getCFApiKey = {
|
||||
String key = System.getenv("CURSEFORGE_API_KEY");
|
||||
if(key != null) return key;
|
||||
File curseforgeKeyFile = new File("./curseforge_key.txt");
|
||||
File curseforgeKeyFile = new File("$projectDir/curseforge_key.txt");
|
||||
if(curseforgeKeyFile.canRead() && curseforgeKeyFile.isFile()) {
|
||||
return curseforgeKeyFile.text;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user