Move to Woodpecker CI
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
e176460061
commit
e777f3baf2
8 changed files with 12 additions and 34 deletions
|
@ -1,7 +1,3 @@
|
|||
kind: pipeline
|
||||
type: docker
|
||||
name: default
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: maven:3-openjdk-17
|
||||
|
@ -9,9 +5,7 @@ steps:
|
|||
- mvn -B -DskipTests clean install
|
||||
- mvn test -B
|
||||
volumes:
|
||||
- name: m2
|
||||
path: /root/.m2
|
||||
|
||||
- /home/docker/woodpecker/files/m2:/root/.m2
|
||||
- name: archive-artifacts
|
||||
image: alpine:latest
|
||||
commands:
|
||||
|
@ -19,9 +13,7 @@ steps:
|
|||
- cp target/Tihwin-*[0-9].jar /builds/Tihwin/
|
||||
- cp target/Tihwin-*[0-9].exe /builds/Tihwin/
|
||||
volumes:
|
||||
- name: builds
|
||||
path: /builds
|
||||
|
||||
- /home/www/builds:/builds
|
||||
- name: make-win-installer
|
||||
image: wheatstalk/makensis:3
|
||||
commands:
|
||||
|
@ -31,18 +23,5 @@ steps:
|
|||
- makensis -V4 ./installer.nsi
|
||||
- cp Installer-*.exe /builds/Tihwin/
|
||||
volumes:
|
||||
- name: builds
|
||||
path: /builds
|
||||
- name: jdk
|
||||
path: /drone/src/NSIS/jdk
|
||||
|
||||
volumes:
|
||||
- name: m2
|
||||
host:
|
||||
path: /home/docker/drone/files/m2
|
||||
- name: builds
|
||||
host:
|
||||
path: /home/www/builds
|
||||
- name: jdk
|
||||
host:
|
||||
path: /home/docker/drone/files/assembly/openjdk-19.0.2
|
||||
- /home/www/builds:/builds
|
||||
- /home/docker/woodpecker/files/assembly/openjdk-19.0.2:/assembly/jdk
|
|
@ -79,7 +79,7 @@
|
|||
Section "Tihwin" Install
|
||||
|
||||
SetOutPath "$INSTDIR"
|
||||
file /r jdk
|
||||
file /r \assembly\jdk
|
||||
file Tihwin.exe
|
||||
file logo.ico
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
## Tihwin
|
||||
![License](https://img.shields.io/badge/License-GPLv3-blue.svg) ![LatestVer](https://img.shields.io/github/release/developersu/Tihwin.svg) [![Build Status](https://ci.redrise.ru/api/badges/desu/Tihwin/status.svg)](https://ci.redrise.ru/desu/Tihwin)
|
||||
![License](https://img.shields.io/badge/License-GPLv3-blue.svg) ![LatestVer](https://img.shields.io/github/release/developersu/Tihwin.svg) [![status-badge](https://ci.redrise.ru/api/badges/6/status.svg)](https://ci.redrise.ru/repos/6)
|
||||
|
||||
#### Other languages
|
||||
[![Russian](flag/ru-flag.svg)](README_RU.md)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
## Tihwin
|
||||
![License](https://img.shields.io/badge/License-GPLv3-blue.svg) ![LatestVer](https://img.shields.io/github/release/developersu/Tihwin.svg) [![Build Status](https://ci.redrise.ru/api/badges/desu/Tihwin/status.svg)](https://ci.redrise.ru/desu/Tihwin)
|
||||
![License](https://img.shields.io/badge/License-GPLv3-blue.svg) ![LatestVer](https://img.shields.io/github/release/developersu/Tihwin.svg) [![status-badge](https://ci.redrise.ru/api/badges/6/status.svg)](https://ci.redrise.ru/repos/6)
|
||||
|
||||
#### Otros idiomas
|
||||
[![Inglés](flag/us-flag.svg)](README.md)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
## Tihwin
|
||||
![License](https://img.shields.io/badge/License-GPLv3-blue.svg) ![LatestVer](https://img.shields.io/github/release/developersu/Tihwin.svg) [![Build Status](https://ci.redrise.ru/api/badges/desu/Tihwin/status.svg)](https://ci.redrise.ru/desu/Tihwin)
|
||||
![License](https://img.shields.io/badge/License-GPLv3-blue.svg) ![LatestVer](https://img.shields.io/github/release/developersu/Tihwin.svg) [![status-badge](https://ci.redrise.ru/api/badges/6/status.svg)](https://ci.redrise.ru/repos/6)
|
||||
|
||||
#### 他の言語
|
||||
[![英語](flag/us-flag.svg)](README.md)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
## Tihwin
|
||||
![License](https://img.shields.io/badge/License-GPLv3-blue.svg) ![LatestVer](https://img.shields.io/github/release/developersu/Tihwin.svg) [![Build Status](https://ci.redrise.ru/api/badges/desu/Tihwin/status.svg)](https://ci.redrise.ru/desu/Tihwin)
|
||||
![License](https://img.shields.io/badge/License-GPLv3-blue.svg) ![LatestVer](https://img.shields.io/github/release/developersu/Tihwin.svg) [![status-badge](https://ci.redrise.ru/api/badges/6/status.svg)](https://ci.redrise.ru/repos/6)
|
||||
|
||||
#### Другие языки
|
||||
[![Английский язык](flag/us-flag.svg)](README.md)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
## Tihwin
|
||||
![License](https://img.shields.io/badge/License-GPLv3-blue.svg) ![LatestVer](https://img.shields.io/github/release/developersu/Tihwin.svg) [![Build Status](https://ci.redrise.ru/api/badges/desu/Tihwin/status.svg)](https://ci.redrise.ru/desu/Tihwin)
|
||||
![License](https://img.shields.io/badge/License-GPLv3-blue.svg) ![LatestVer](https://img.shields.io/github/release/developersu/Tihwin.svg) [![status-badge](https://ci.redrise.ru/api/badges/6/status.svg)](https://ci.redrise.ru/repos/6)
|
||||
|
||||
#### 他ぬ言語
|
||||
[![英語](flag/us-flag.svg)](README.md)
|
||||
|
|
|
@ -68,7 +68,6 @@ public class MainAppUi extends JFrame {
|
|||
private Thread splitThread;
|
||||
|
||||
public MainAppUi(String appName) {
|
||||
super(appName);
|
||||
$$$setupUI$$$();
|
||||
resourceBundle = ResourceBundle.getBundle("locale");
|
||||
AwesomeMediator.setMainUi(this);
|
||||
|
@ -139,7 +138,7 @@ public class MainAppUi extends JFrame {
|
|||
String proposedName = diskImage.getName().replaceAll("(\\..*)|(\\[.*)", "").trim();
|
||||
if (proposedName.length() > 31)
|
||||
proposedName = proposedName.substring(0, 31);
|
||||
if (proposedName.length() == 0)
|
||||
if (proposedName.isEmpty())
|
||||
proposedName = "My favorite game";
|
||||
titleField.setText(proposedName);
|
||||
}
|
||||
|
@ -164,7 +163,7 @@ public class MainAppUi extends JFrame {
|
|||
return;
|
||||
}
|
||||
|
||||
if (titleField.getText().length() == 0) {
|
||||
if (titleField.getText().isEmpty()) {
|
||||
setProposedTitle();
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue