mirror of
https://github.com/octopusYan/alist-gui.git
synced 2025-12-08 09:11:56 +08:00
Compare commits
5 Commits
alpha/v1.0
...
4dc13bb8f1
| Author | SHA1 | Date | |
|---|---|---|---|
| 4dc13bb8f1 | |||
| ea922e6a3f | |||
| 3dc60a89e1 | |||
| 30f05240f9 | |||
| 115e672f26 |
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@ -121,10 +121,12 @@ jobs:
|
||||
mkdir zipball && cp target/*.zip zipball
|
||||
|
||||
- name: Upload AListGUI to Github
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: AListGUI-windows
|
||||
path: zipball
|
||||
retention-days: 5
|
||||
|
||||
release:
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
|
||||
2
.gitignore
vendored
2
.gitignore
vendored
@ -6,8 +6,8 @@ target/
|
||||
!.mvn/wrapper/maven-wrapper.jar
|
||||
!**/src/main/**/target/
|
||||
!**/src/test/**/target/
|
||||
/config/
|
||||
/bin/
|
||||
gui.yaml
|
||||
|
||||
### IntelliJ IDEA ###
|
||||
.idea/
|
||||
|
||||
3
pom.xml
3
pom.xml
@ -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>
|
||||
|
||||
@ -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";
|
||||
|
||||
@ -37,8 +37,14 @@ public class SetupController extends BaseController<SetupViewModel> implements I
|
||||
public CheckBox silentStartupCheckBox;
|
||||
@I18n(key = "setup.close-to-tray.label")
|
||||
public CheckBox closeToTrayCheckBox;
|
||||
public ComboBox<Locale> languageComboBox;
|
||||
@I18n(key = "setup.theme")
|
||||
public Label themeLabel;
|
||||
public ComboBox<Theme> themeComboBox;
|
||||
@I18n(key = "setup.language")
|
||||
public Label languageLabel;
|
||||
public ComboBox<Locale> languageComboBox;
|
||||
@I18n(key = "setup.proxy")
|
||||
public Label proxySetupLabel;
|
||||
public ComboBox<ProxySetup> proxySetupComboBox;
|
||||
public Pane proxySetupPane;
|
||||
@I18n(key = "setup.proxy.test")
|
||||
|
||||
@ -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() {
|
||||
|
||||
@ -14,15 +14,15 @@
|
||||
<CheckBox fx:id="silentStartupCheckBox" text="%setup.silent-startup.label"/>
|
||||
<CheckBox fx:id="closeToTrayCheckBox" text="%setup.close-to-tray.label"/>
|
||||
<HBox alignment="CENTER_LEFT" spacing="10">
|
||||
<Label text="%setup.theme"/>
|
||||
<Label fx:id="themeLabel" text="%setup.theme"/>
|
||||
<ComboBox fx:id="themeComboBox"/>
|
||||
</HBox>
|
||||
<HBox alignment="CENTER_LEFT" spacing="10">
|
||||
<Label text="%setup.language"/>
|
||||
<Label fx:id="languageLabel" text="%setup.language"/>
|
||||
<ComboBox fx:id="languageComboBox"/>
|
||||
</HBox>
|
||||
<HBox alignment="CENTER_LEFT" spacing="20">
|
||||
<Label styleClass="proxy-label" text="%setup.proxy"/>
|
||||
<Label fx:id="proxySetupLabel" styleClass="proxy-label" text="%setup.proxy"/>
|
||||
<ComboBox fx:id="proxySetupComboBox"/>
|
||||
<Button fx:id="proxyCheck" onAction="#proxyTest" text="%setup.proxy.test"/>
|
||||
</HBox>
|
||||
|
||||
Reference in New Issue
Block a user