From 60cf04d77285b426d92b50e384f7d3a54fdea3af Mon Sep 17 00:00:00 2001 From: Laky64 Date: Tue, 14 Mar 2023 20:59:17 +0100 Subject: [PATCH] Moved Java Path to env file --- consts/consts.go | 1 - consts/load_env.go | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/consts/consts.go b/consts/consts.go index a10f449..2a85f5a 100644 --- a/consts/consts.go +++ b/consts/consts.go @@ -3,4 +3,3 @@ package consts const ProjectPath = "C:/Users/iraci/StudioProjects/OwlGram" const BuildOutputsPath = ProjectPath + "/TMessagesProj_App/build/outputs" const ApiNotifyUrl = "https://app.owlgram.org/notify_upload" -const JavaPath = "C:/Program Files/Android/Android Studio/jbr" diff --git a/consts/load_env.go b/consts/load_env.go index 4df58f5..e24e9ad 100644 --- a/consts/load_env.go +++ b/consts/load_env.go @@ -16,6 +16,7 @@ var ( SshPassword string SshFolderOutput string PublisherToken string + JavaPath string ) func LoadEnv() { @@ -31,4 +32,5 @@ func LoadEnv() { SshUser = os.Getenv("SSH_USER") SshPassword = os.Getenv("SSH_PASSWORD") SshFolderOutput = os.Getenv("SSH_FOLDER_OUTPUT") + JavaPath = os.Getenv("JAVA_PATH") }