Skip to content

Commit

Permalink
2.3.0BETA_2
Browse files Browse the repository at this point in the history
  • Loading branch information
KostromDan committed Mar 26, 2024
1 parent 6ac2b60 commit 5255973
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
17 changes: 14 additions & 3 deletions MDGUtil/PathUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,20 @@
ADOPTIUM_DOWNLOADS_PAGE = ('https://adoptium.net/temurin/releases/'
f"?version=18&package=jdk&arch=x{platform.architecture()[0].removesuffix('bit')}")

FORGE_GRADLE_DEOBF_CACHE_FOLDER = os.path.join(os.path.expanduser('~'),
'.gradle',
'caches',

def get_gradle_caches_path():
gradle_user_home = os.environ.get("GRADLE_USER_HOME")

if gradle_user_home:
gradle_caches_path = os.path.join(gradle_user_home, "caches")
else:
home_dir = os.path.expanduser("~")
gradle_caches_path = os.path.join(home_dir, ".gradle", "caches")

return gradle_caches_path


FORGE_GRADLE_DEOBF_CACHE_FOLDER = os.path.join(get_gradle_caches_path(),
'forge_gradle',
'deobf_dependencies')

Expand Down
2 changes: 1 addition & 1 deletion built_to_exe.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from MDGUtil import PathUtils, FileUtils

VERSION = '2.3.0BETA'
VERSION = '2.3.0BETA_2'


def main():
Expand Down

0 comments on commit 5255973

Please sign in to comment.