mirror of
https://github.com/octopusYan/alist-gui.git
synced 2024-11-22 12:06:43 +08:00
Compare commits
No commits in common. "4dc13bb8f1bd65deeb8b72a788b9f9d072a36499" and "30f05240f9686b969f899daf3541e71c20be6922" have entirely different histories.
4dc13bb8f1
...
30f05240f9
2
.gitignore
vendored
2
.gitignore
vendored
@ -6,8 +6,8 @@ target/
|
|||||||
!.mvn/wrapper/maven-wrapper.jar
|
!.mvn/wrapper/maven-wrapper.jar
|
||||||
!**/src/main/**/target/
|
!**/src/main/**/target/
|
||||||
!**/src/test/**/target/
|
!**/src/test/**/target/
|
||||||
|
/config/
|
||||||
/bin/
|
/bin/
|
||||||
gui.yaml
|
|
||||||
|
|
||||||
### IntelliJ IDEA ###
|
### IntelliJ IDEA ###
|
||||||
.idea/
|
.idea/
|
||||||
|
3
pom.xml
3
pom.xml
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<groupId>cn.octopusyan</groupId>
|
<groupId>cn.octopusyan</groupId>
|
||||||
<artifactId>alist-gui</artifactId>
|
<artifactId>alist-gui</artifactId>
|
||||||
<version>1.0.2</version>
|
<version>1.0.1</version>
|
||||||
<name>alist-gui</name>
|
<name>alist-gui</name>
|
||||||
|
|
||||||
<organization>
|
<organization>
|
||||||
@ -238,7 +238,6 @@
|
|||||||
<mainClass>cn.octopusyan.alistgui/${exec.mainClass}</mainClass>
|
<mainClass>cn.octopusyan.alistgui/${exec.mainClass}</mainClass>
|
||||||
<options>
|
<options>
|
||||||
<option>--enable-preview</option>
|
<option>--enable-preview</option>
|
||||||
<!-- <option>-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005</option>-->
|
|
||||||
</options>
|
</options>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
|
@ -20,7 +20,8 @@ public class Constants {
|
|||||||
public static final String TMP_DIR_PATH = System.getProperty("java.io.tmpdir") + APP_NAME;
|
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 ALIST_FILE = STR."\{BIN_DIR_PATH}\{File.separator}alist.exe";
|
||||||
public static final String GUI_CONFIG_PATH = STR."\{DATA_DIR_PATH}\{File.separator}gui.yaml";
|
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 BAK_FILE_PATH = STR."\{Constants.TMP_DIR_PATH}\{File.separator}bak";
|
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";
|
public static final String REG_AUTO_RUN = "Software\\Microsoft\\Windows\\CurrentVersion\\Run";
|
||||||
|
@ -84,10 +84,10 @@ public class ConfigManager {
|
|||||||
File parent = FileUtil.getParent(src, 1);
|
File parent = FileUtil.getParent(src, 1);
|
||||||
if (!parent.exists()) {
|
if (!parent.exists()) {
|
||||||
boolean wasSuccessful = parent.mkdirs();
|
boolean wasSuccessful = parent.mkdirs();
|
||||||
|
objectMapper.writeValue(src, clazz.getDeclaredConstructor().newInstance());
|
||||||
if (!wasSuccessful)
|
if (!wasSuccessful)
|
||||||
logger.error("{} 创建失败", src.getAbsolutePath());
|
logger.error("{} 创建失败", src.getAbsolutePath());
|
||||||
}
|
}
|
||||||
objectMapper.writeValue(src, clazz.getDeclaredConstructor().newInstance());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void save() {
|
public static void save() {
|
||||||
|
Loading…
Reference in New Issue
Block a user