Compare commits

...

3 commits

Author SHA1 Message Date
Antoni
e89d4caf0b
Merge 0e1691ee4c into 38dcc1a53e 2025-06-26 22:08:22 +03:00
Gravita
38dcc1a53e [FIX] Try fix create assets directory 2025-06-26 23:16:19 +07:00
microwin7
0e1691ee4c
Add Discord Widget 2023-05-19 22:40:26 +03:00
2 changed files with 13 additions and 2 deletions

View file

@ -106,6 +106,15 @@ public CompletedProfile pushUpdate(UncompletedProfile profile, String tag, Clien
LocalProfile localProfile = (LocalProfile) profile;
localProfile = new LocalProfile(clientProfile, localProfile.clientDir, localProfile.assetDir);
localProfile.profile = clientProfile;
if(flags.contains(UpdateFlag.USE_DEFAULT_ASSETS)) {
if(getUpdatesDir("assets") == null) {
Path assetDirPath = updatesDirPath.resolve("assets");
if(!Files.exists(assetDirPath)) {
Files.createDirectories(assetDirPath);
}
updatesDirMap.put("assets", new HashedDir(assetDirPath, null, true, true));
}
}
if(assetActions != null && !assetActions.isEmpty()) {
Path assetDir = updatesDirPath.resolve(clientProfile.getAssetDir());
execute(localProfile.assetDir, assetDir, assetActions);

View file

@ -1,4 +1,6 @@
# Modification of the launcher sashok724's v3 from Gravit [![Build Status](https://travis-ci.com/GravitLauncher/Launcher.svg?branch=master)](https://travis-ci.com/GravitLauncher/Launcher)
# Modification of the launcher sashok724's v3 from Gravit
[![Build Status](https://travis-ci.com/GravitLauncher/Launcher.svg?branch=master)](https://travis-ci.com/GravitLauncher/Launcher)
[![Join our Discord](https://img.shields.io/discord/853340557522370561.svg?logo=discord&label=)](https://discord.gg/b9QG4ygY75)
* [Discord channel](https://discord.gg/b9QG4ygY75)
@ -9,4 +11,4 @@
```sh
curl -s https://raw.githubusercontent.com/GravitLauncher/Launcher/master/get_it.sh | sh
```
```