Move to Woodpecker CI
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Dmitry Isaenko 2024-11-21 00:07:57 +03:00
parent e176460061
commit e777f3baf2
8 changed files with 12 additions and 34 deletions

View file

@ -1,7 +1,3 @@
kind: pipeline
type: docker
name: default
steps: steps:
- name: build - name: build
image: maven:3-openjdk-17 image: maven:3-openjdk-17
@ -9,9 +5,7 @@ steps:
- mvn -B -DskipTests clean install - mvn -B -DskipTests clean install
- mvn test -B - mvn test -B
volumes: volumes:
- name: m2 - /home/docker/woodpecker/files/m2:/root/.m2
path: /root/.m2
- name: archive-artifacts - name: archive-artifacts
image: alpine:latest image: alpine:latest
commands: commands:
@ -19,9 +13,7 @@ steps:
- cp target/Tihwin-*[0-9].jar /builds/Tihwin/ - cp target/Tihwin-*[0-9].jar /builds/Tihwin/
- cp target/Tihwin-*[0-9].exe /builds/Tihwin/ - cp target/Tihwin-*[0-9].exe /builds/Tihwin/
volumes: volumes:
- name: builds - /home/www/builds:/builds
path: /builds
- name: make-win-installer - name: make-win-installer
image: wheatstalk/makensis:3 image: wheatstalk/makensis:3
commands: commands:
@ -31,18 +23,5 @@ steps:
- makensis -V4 ./installer.nsi - makensis -V4 ./installer.nsi
- cp Installer-*.exe /builds/Tihwin/ - cp Installer-*.exe /builds/Tihwin/
volumes: volumes:
- name: builds - /home/www/builds:/builds
path: /builds - /home/docker/woodpecker/files/assembly/openjdk-19.0.2:/assembly/jdk
- 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

View file

@ -79,7 +79,7 @@
Section "Tihwin" Install Section "Tihwin" Install
SetOutPath "$INSTDIR" SetOutPath "$INSTDIR"
file /r jdk file /r \assembly\jdk
file Tihwin.exe file Tihwin.exe
file logo.ico file logo.ico

View file

@ -1,5 +1,5 @@
## Tihwin ## 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 #### Other languages
[![Russian](flag/ru-flag.svg)](README_RU.md) [![Russian](flag/ru-flag.svg)](README_RU.md)

View file

@ -1,5 +1,5 @@
## Tihwin ## 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 #### Otros idiomas
[![Inglés](flag/us-flag.svg)](README.md) [![Inglés](flag/us-flag.svg)](README.md)

View file

@ -1,5 +1,5 @@
## Tihwin ## 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) [![英語](flag/us-flag.svg)](README.md)

View file

@ -1,5 +1,5 @@
## Tihwin ## 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) [![Английский язык](flag/us-flag.svg)](README.md)

View file

@ -1,5 +1,5 @@
## Tihwin ## 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) [![英語](flag/us-flag.svg)](README.md)

View file

@ -68,7 +68,6 @@ public class MainAppUi extends JFrame {
private Thread splitThread; private Thread splitThread;
public MainAppUi(String appName) { public MainAppUi(String appName) {
super(appName);
$$$setupUI$$$(); $$$setupUI$$$();
resourceBundle = ResourceBundle.getBundle("locale"); resourceBundle = ResourceBundle.getBundle("locale");
AwesomeMediator.setMainUi(this); AwesomeMediator.setMainUi(this);
@ -139,7 +138,7 @@ public class MainAppUi extends JFrame {
String proposedName = diskImage.getName().replaceAll("(\\..*)|(\\[.*)", "").trim(); String proposedName = diskImage.getName().replaceAll("(\\..*)|(\\[.*)", "").trim();
if (proposedName.length() > 31) if (proposedName.length() > 31)
proposedName = proposedName.substring(0, 31); proposedName = proposedName.substring(0, 31);
if (proposedName.length() == 0) if (proposedName.isEmpty())
proposedName = "My favorite game"; proposedName = "My favorite game";
titleField.setText(proposedName); titleField.setText(proposedName);
} }
@ -164,7 +163,7 @@ public class MainAppUi extends JFrame {
return; return;
} }
if (titleField.getText().length() == 0) { if (titleField.getText().isEmpty()) {
setProposedTitle(); setProposedTitle();
return; return;
} }