Compare commits

...

3 Commits

Author SHA1 Message Date
octopus yan
4dc13bb8f1
Release v1.0.2
Release v1.0.2
2024-10-27 15:29:57 +08:00
ea922e6a3f docs: version 1.0.2 2024-10-27 15:24:54 +08:00
3dc60a89e1 chore: 修改GUI配置文件位置 2024-10-19 22:03:38 +08:00
4 changed files with 5 additions and 5 deletions

2
.gitignore vendored
View File

@ -6,8 +6,8 @@ target/
!.mvn/wrapper/maven-wrapper.jar
!**/src/main/**/target/
!**/src/test/**/target/
/config/
/bin/
gui.yaml
### IntelliJ IDEA ###
.idea/

View File

@ -6,7 +6,7 @@
<groupId>cn.octopusyan</groupId>
<artifactId>alist-gui</artifactId>
<version>1.0.1</version>
<version>1.0.2</version>
<name>alist-gui</name>
<organization>
@ -238,6 +238,7 @@
<mainClass>cn.octopusyan.alistgui/${exec.mainClass}</mainClass>
<options>
<option>--enable-preview</option>
<!-- <option>-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005</option>-->
</options>
</configuration>
</execution>

View File

@ -20,8 +20,7 @@ public class Constants {
public static final String TMP_DIR_PATH = System.getProperty("java.io.tmpdir") + APP_NAME;
public static final String ALIST_FILE = STR."\{BIN_DIR_PATH}\{File.separator}alist.exe";
public static final String CONFIG_DIR_PATH = STR."\{DATA_DIR_PATH}\{File.separator}config";
public static final String GUI_CONFIG_PATH = STR."\{CONFIG_DIR_PATH}\{File.separator}gui.yaml";
public static final String GUI_CONFIG_PATH = STR."\{DATA_DIR_PATH}\{File.separator}gui.yaml";
public static final String BAK_FILE_PATH = STR."\{Constants.TMP_DIR_PATH}\{File.separator}bak";
public static final String REG_AUTO_RUN = "Software\\Microsoft\\Windows\\CurrentVersion\\Run";

View File

@ -84,10 +84,10 @@ public class ConfigManager {
File parent = FileUtil.getParent(src, 1);
if (!parent.exists()) {
boolean wasSuccessful = parent.mkdirs();
objectMapper.writeValue(src, clazz.getDeclaredConstructor().newInstance());
if (!wasSuccessful)
logger.error("{} 创建失败", src.getAbsolutePath());
}
objectMapper.writeValue(src, clazz.getDeclaredConstructor().newInstance());
}
public static void save() {