Skip to content

Commit 693b6ed

Browse files
authored
Merge branch 'master' into master
2 parents 4a551e2 + 511a28e commit 693b6ed

47 files changed

Lines changed: 308 additions & 161 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/github-build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,20 +40,20 @@ jobs:
4040
bash ../distribute/distribute-docker.sh ${{ matrix.target }}
4141
4242
- name: Archive built files
43-
uses: actions/upload-artifact@v3
43+
uses: actions/upload-artifact@v4.4.3
4444
with:
45-
name: output binaries
45+
name: output binaries ${{ matrix.target }}
4646
path: |
4747
output/*
4848
4949
upload:
5050
name: Create release and upload artifacts
5151
needs:
5252
- distribute
53-
runs-on: ubuntu-20.04
53+
runs-on: ubuntu-latest
5454
steps:
5555
- name: Download artifacts
56-
uses: actions/download-artifact@v2
56+
uses: actions/download-artifact@v4.1.8
5757
- name: Inspect directory after downloading artifacts
5858
run: ls -alFR
5959
- name: Create release and upload artifacts
@@ -62,4 +62,4 @@ jobs:
6262
run: |
6363
wget https://github.com/TheAssassin/pyuploadtool/releases/download/20231223-1/pyuploadtool-x86_64.AppImage
6464
chmod +x pyuploadtool-x86_64.AppImage
65-
./pyuploadtool-x86_64.AppImage "output binaries"/*.*
65+
./pyuploadtool-x86_64.AppImage --appimage-extract-and-run "output binaries"*/*.*

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
/settings/
1616
/src/main/resources/de/thomas_oster/visicut/gui/resources/splash.png
1717
/src/main/resources/de/thomas_oster/visicut/gui/resources/splash@*.png
18+
/src/main/resources/de/thomas_oster/visicut/gui/resources/VisicutAppVersion.properties
1819
/*-pak
1920
# Temporary files:
2021
/distribute/wintmp/

LibLaserCut

Submodule LibLaserCut updated 47 files

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ help:
1616
splash:
1717
./generatesplash.sh
1818
jar: splash libLaserCut
19+
# Write version into properties file (used by Help-About screen).
20+
./versionnumber.sh
21+
echo "Version = $(shell ./versionnumber.sh)" > src/main/resources/de/thomas_oster/visicut/gui/resources/VisicutAppVersion.properties
1922
mvn initialize
2023
mvn package
2124
dist:
@@ -29,6 +32,7 @@ libLaserCut:
2932
cd ..
3033
clean:
3134
rm -f src/main/resources/de/thomas_oster/visicut/gui/resources/splash.png
35+
rm -f src/main/resources/de/thomas_oster/visicut/gui/resources/VisicutAppVersion.properties
3236
mvn clean
3337
install:
3438
mkdir -p $(DESTDIR)$(PREFIX)/share/visicut

distribute/Dockerfile

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
# makepkg is available in bullseye's backports (and newer distros) only
2-
# checkinstall is available in bullseye only, too
3-
FROM debian:bullseye-backports
1+
FROM debian:trixie
42

53
SHELL ["bash", "-x", "-c"]
64

@@ -9,11 +7,10 @@ ENV DEBIAN_FRONTEND=noninteractive
97
# workaround nsis bug: https://sourceforge.net/p/nsis/bugs/1180/
108
ENV LANG C.UTF-8
119

12-
# note: don't build with OpenJDK > 16, as this is the runtime we ship
1310
RUN apt-get update && \
14-
apt-get install -y openjdk-11-jdk git wget shellcheck bash make maven python3-minimal python3-pip \
15-
nsis zip libfuse2 checkinstall makepkg fonts-noto-extra potrace sudo && \
16-
python3 -m pip install git+https://github.com/TheAssassin/appimagecraft.git@6b36fda#egg=appimagecraft
11+
apt-get install -y default-jdk git wget shellcheck bash make maven python3-minimal python3-pip \
12+
nsis zip libfuse2 checkinstall makepkg fonts-noto-extra potrace sudo librsvg2-bin && \
13+
python3 -m pip install --break-system-packages git+https://github.com/TheAssassin/appimagecraft.git@6b36fda#egg=appimagecraft
1714

1815
# we don't have a defined $HOME, but we need Maven to write the libLaserCut artifact somewhere
1916
COPY docker/maven-settings.xml /usr/share/maven/conf/settings.xml

distribute/distribute.sh

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ log() {
2323
# targets to be built need to be passed on the commandline
2424
# if no targets are provided, we display a help text
2525
if [[ "${1:-}" == "" ]]; then
26-
log "Usage: [env NO_BUILD=1] $0 <targets>"
26+
log "Usage: [env NO_BUILD=1 VERSION=1.2.3-mystuff] $0 <targets>"
2727
echo
2828
log "Available targets:"
2929
log " - zip"
@@ -34,6 +34,7 @@ if [[ "${1:-}" == "" ]]; then
3434
echo
3535
log "Available environment variables:"
3636
log " - \$NO_BUILD=[...]: if set to any string, $0 won't build a JAR (saves build time if the script ran already)"
37+
log " - \$VERSION=[...]: if set to any string, will overwrite the version number"
3738
exit 2
3839
fi
3940

@@ -46,25 +47,13 @@ distribute_dir="$(readlink -f "$(dirname "${BASH_SOURCE[0]}")")"
4647
# we assume the distribute directory is a direct subdirectory of the project root directory (i.e., the Git repository)
4748
project_root_dir="$(readlink -f "$distribute_dir"/..)"
4849

49-
if [[ "${VERSION:-}" != "" ]]; then
50-
log "Using user-provided version \$VERSION=$VERSION"
51-
else
52-
pushd "$project_root_dir"
53-
54-
properties=src/main/resources/de/thomas_oster/visicut/gui/resources/VisicutApp.properties
55-
VERSION="$(grep Application.version < "$properties" | cut -d= -f2 | tr -d ' ')"
56-
57-
# usually, distribute.sh doesn't create the properties file, so we implement a Git based fallback
58-
if [[ "$VERSION" != "" ]]; then
59-
log "Using properties-provided version $VERSION"
60-
else
61-
VERSION="$(git describe --tags || echo unknown)+devel"
62-
fi
63-
64-
popd
65-
fi
50+
pushd "$project_root_dir"
51+
VERSION="$(./versionnumber.sh)"
52+
popd
6653

6754
export VERSION
55+
log "Determined version: $VERSION"
56+
6857

6958
if [ "${NO_BUILD:-}" == "" ]; then
7059
log "Building VisiCut JAR"
@@ -198,7 +187,7 @@ EOF
198187
popd
199188

200189
filename_prefix="VisiCut-$VERSION-Windows-Installer"
201-
mv "$build_dir"/setup.exe "$filename_prefix".exe
190+
mv "$build_dir"/vcsetup.exe "$filename_prefix".exe
202191
echo "Success: Built Windows EXE Installer in $(pwd)/${filename_prefix}.exe"
203192
;;
204193

distribute/mac/VisiCut.app/Contents/Info.plist

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,6 @@
6868
<key>JVMRuntimePath</key>
6969
<string></string>
7070
-->
71-
<key>LSEnvironment</key>
72-
<dict>
73-
<key>JAVA_HOME</key>
74-
<string>Contents/Plugins/JRE/Contents/Home/</string>
75-
</dict>
7671
<key>JVMMainClassName</key>
7772
<string>de.thomas_oster.visicut.gui.VisicutApp</string>
7873
<key>JVMClassPaths</key>

distribute/windows/installer.nsi

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
;General
2020
Name "${AppName}"
21-
OutFile "setup.exe"
21+
OutFile "vcsetup.exe"
2222

2323
;Folder selection page
2424
InstallDir "$PROGRAMFILES\${SHORTNAME}"
@@ -40,8 +40,6 @@
4040
!define MUI_PAGE_HEADER_SUBTEXT "Please wait while ${AppName} is being installed."
4141
; Uncomment the next line if you want optional components to be selectable
4242
; !insertmacro MUI_PAGE_COMPONENTS
43-
!define MUI_PAGE_CUSTOMFUNCTION_PRE myPreInstfiles
44-
!define MUI_PAGE_CUSTOMFUNCTION_LEAVE RestoreSections
4543
!insertmacro MUI_PAGE_DIRECTORY
4644
!insertmacro MUI_PAGE_INSTFILES
4745
!insertmacro MUI_PAGE_FINISH
@@ -170,29 +168,8 @@ SectionEnd
170168
;Installer Functions
171169

172170
Function .onInit
173-
174-
;Extract InstallOptions INI Files
175-
Call SetupSections
176-
177-
FunctionEnd
178-
179-
Function myPreInstfiles
180-
181-
Call RestoreSections
182-
SetAutoClose true
183-
184-
FunctionEnd
185-
186-
Function RestoreSections
187-
!insertmacro SelectSection ${SecAppFiles}
188-
!insertmacro SelectSection ${SecCreateShortcut}
189-
190-
FunctionEnd
191-
192-
Function SetupSections
193-
!insertmacro UnselectSection ${SecAppFiles}
194-
!insertmacro UnselectSection ${SecCreateShortcut}
195171
FunctionEnd
172+
196173

197174
;--------------------------------
198175
;Uninstaller Section

generatesplash.sh

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,9 @@ else
99
rm -f src/main/resources/de/thomas_oster/visicut/gui/resources/splash@{2,3}x.png
1010
exit
1111
fi
12-
echo "Determining Version (may be overridden with environment variable VERSION)"
1312
cd "$(dirname $0)"
14-
VERSION=${VERSION:-$(cat ./src/main/resources/de/thomas_oster/visicut/gui/resources/VisicutApp.properties |grep Application.version)}
15-
VERSION=${VERSION#*=}
16-
VERSION=${VERSION// /}
17-
echo "Version is: \"$VERSION\""
18-
echo "Version is: $VERSION"
13+
VERSION=$(./versionnumber.sh)
14+
echo "Version is: \"$VERSION\" (override with VERSION environment variable)"
1915
echo "Generating SVG"
2016
cat splashsource.svg|sed s#insert#$VERSION#g# > splash.svg
2117
echo "Converting to png"

pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@
5050
<version>2.1.6.RELEASE</version>
5151
</dependency>
5252
<dependency>
53-
<groupId>guru.nidi.com.kitfox</groupId>
53+
<groupId>com.formdev</groupId>
5454
<artifactId>svgSalamander</artifactId>
55-
<version>1.1.2</version>
55+
<version>1.1.4</version>
5656
</dependency>
5757
<dependency>
5858
<groupId>org.apache.httpcomponents</groupId>
@@ -84,7 +84,7 @@
8484
<dependency>
8585
<groupId>com.thoughtworks.xstream</groupId>
8686
<artifactId>xstream</artifactId>
87-
<version>1.4.19</version>
87+
<version>1.4.21</version>
8888
<type>jar</type>
8989
</dependency>
9090
<dependency>

0 commit comments

Comments
 (0)