mirror of
https://github.com/praktimarc/kst4contest.git
synced 2026-04-07 16:57:22 +02:00
Rename Building Artifacts
This commit is contained in:
37
.github/workflows/nightly-artifacts.yml
vendored
37
.github/workflows/nightly-artifacts.yml
vendored
@@ -4,7 +4,6 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
- test-mac
|
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "20 2 * * *"
|
- cron: "20 2 * * *"
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
@@ -86,7 +85,7 @@ jobs:
|
|||||||
SHORT_SHA="${GITHUB_SHA::7}"
|
SHORT_SHA="${GITHUB_SHA::7}"
|
||||||
echo "VERSION=$VERSION" >> "$GITHUB_ENV"
|
echo "VERSION=$VERSION" >> "$GITHUB_ENV"
|
||||||
echo "SHORT_SHA=$SHORT_SHA" >> "$GITHUB_ENV"
|
echo "SHORT_SHA=$SHORT_SHA" >> "$GITHUB_ENV"
|
||||||
echo "ASSET_BASENAME=praktiKST-${VERSION}-${SHORT_SHA}" >> "$GITHUB_ENV"
|
echo "ASSET_BASENAME=KST4Contest-${VERSION}-${SHORT_SHA}" >> "$GITHUB_ENV"
|
||||||
|
|
||||||
- name: Set up Java 17
|
- name: Set up Java 17
|
||||||
uses: actions/setup-java@v4.1.0
|
uses: actions/setup-java@v4.1.0
|
||||||
@@ -107,7 +106,7 @@ jobs:
|
|||||||
mkdir -p dist
|
mkdir -p dist
|
||||||
jpackage \
|
jpackage \
|
||||||
--type app-image \
|
--type app-image \
|
||||||
--name praktiKST \
|
--name KST4Contest \
|
||||||
--input target/dist-libs \
|
--input target/dist-libs \
|
||||||
--main-jar app.jar \
|
--main-jar app.jar \
|
||||||
--main-class kst4contest.view.Kst4ContestApplication \
|
--main-class kst4contest.view.Kst4ContestApplication \
|
||||||
@@ -117,41 +116,41 @@ jobs:
|
|||||||
|
|
||||||
- name: Create AppDir metadata
|
- name: Create AppDir metadata
|
||||||
run: |
|
run: |
|
||||||
rm -rf target/praktiKST.AppDir
|
rm -rf target/KST4Contest.AppDir
|
||||||
cp -a dist/praktiKST target/praktiKST.AppDir
|
cp -a dist/KST4Contest target/KST4Contest.AppDir
|
||||||
|
|
||||||
cat > target/praktiKST.AppDir/AppRun << 'EOF'
|
cat > target/KST4Contest.AppDir/AppRun << 'EOF'
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
HERE="$(dirname "$(readlink -f "$0")")"
|
HERE="$(dirname "$(readlink -f "$0")")"
|
||||||
exec "$HERE/bin/praktiKST" "$@"
|
exec "$HERE/bin/KST4Contest" "$@"
|
||||||
EOF
|
EOF
|
||||||
chmod +x target/praktiKST.AppDir/AppRun
|
chmod +x target/KST4Contest.AppDir/AppRun
|
||||||
|
|
||||||
cat > target/praktiKST.AppDir/praktiKST.desktop << 'EOF'
|
cat > target/KST4Contest.AppDir/KST4Contest.desktop << 'EOF'
|
||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Type=Application
|
Type=Application
|
||||||
Name=praktiKST
|
Name=KST4Contest
|
||||||
Exec=praktiKST
|
Exec=KST4Contest
|
||||||
Icon=praktiKST
|
Icon=KST4Contest
|
||||||
Categories=Network;HamRadio;
|
Categories=Network;HamRadio;
|
||||||
Terminal=false
|
Terminal=false
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
if [ -f target/praktiKST.AppDir/lib/praktiKST.png ]; then
|
if [ -f target/KST4Contest.AppDir/lib/KST4Contest.png ]; then
|
||||||
cp target/praktiKST.AppDir/lib/praktiKST.png target/praktiKST.AppDir/praktiKST.png
|
cp target/KST4Contest.AppDir/lib/KST4Contest.png target/KST4Contest.AppDir/KST4Contest.png
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Build AppImage
|
- name: Build AppImage
|
||||||
run: |
|
run: |
|
||||||
wget -q -O target/appimagetool.AppImage https://github.com/AppImage/appimagetool/releases/download/continuous/appimagetool-x86_64.AppImage
|
wget -q -O target/appimagetool.AppImage https://github.com/AppImage/appimagetool/releases/download/continuous/appimagetool-x86_64.AppImage
|
||||||
chmod +x target/appimagetool.AppImage
|
chmod +x target/appimagetool.AppImage
|
||||||
APPIMAGE_EXTRACT_AND_RUN=1 ARCH=x86_64 target/appimagetool.AppImage target/praktiKST.AppDir "dist/${ASSET_BASENAME}-linux-x86_64.AppImage"
|
APPIMAGE_EXTRACT_AND_RUN=1 ARCH=x86_64 target/appimagetool.AppImage target/KST4Contest.AppDir "dist/${ASSET_BASENAME}-linux-x86_64.AppImage"
|
||||||
|
|
||||||
- name: Upload Linux artifact
|
- name: Upload Linux artifact
|
||||||
uses: actions/upload-artifact@v4.3.4
|
uses: actions/upload-artifact@v4.3.4
|
||||||
with:
|
with:
|
||||||
name: linux-appimage
|
name: linux-appimage
|
||||||
path: dist/praktiKST-*-linux-x86_64.AppImage
|
path: dist/KST4Contest-*-linux-x86_64.AppImage
|
||||||
retention-days: 14
|
retention-days: 14
|
||||||
|
|
||||||
build-macos-dmg:
|
build-macos-dmg:
|
||||||
@@ -172,7 +171,7 @@ jobs:
|
|||||||
ARCH=$(uname -m)
|
ARCH=$(uname -m)
|
||||||
echo "VERSION=$VERSION" >> "$GITHUB_ENV"
|
echo "VERSION=$VERSION" >> "$GITHUB_ENV"
|
||||||
echo "SHORT_SHA=$SHORT_SHA" >> "$GITHUB_ENV"
|
echo "SHORT_SHA=$SHORT_SHA" >> "$GITHUB_ENV"
|
||||||
echo "ASSET_BASENAME=praktiKST-${VERSION}-${SHORT_SHA}" >> "$GITHUB_ENV"
|
echo "ASSET_BASENAME=KST4Contest-${VERSION}-${SHORT_SHA}" >> "$GITHUB_ENV"
|
||||||
echo "ARCH=$ARCH" >> "$GITHUB_ENV"
|
echo "ARCH=$ARCH" >> "$GITHUB_ENV"
|
||||||
|
|
||||||
- name: Set up Java 17
|
- name: Set up Java 17
|
||||||
@@ -194,7 +193,7 @@ jobs:
|
|||||||
mkdir -p dist
|
mkdir -p dist
|
||||||
jpackage \
|
jpackage \
|
||||||
--type dmg \
|
--type dmg \
|
||||||
--name praktiKST \
|
--name KST4Contest \
|
||||||
--input target/dist-libs \
|
--input target/dist-libs \
|
||||||
--main-jar app.jar \
|
--main-jar app.jar \
|
||||||
--main-class kst4contest.view.Kst4ContestApplication \
|
--main-class kst4contest.view.Kst4ContestApplication \
|
||||||
@@ -217,5 +216,5 @@ jobs:
|
|||||||
uses: actions/upload-artifact@v4.3.4
|
uses: actions/upload-artifact@v4.3.4
|
||||||
with:
|
with:
|
||||||
name: macos-dmg-${{ matrix.os }}
|
name: macos-dmg-${{ matrix.os }}
|
||||||
path: dist/praktiKST-*-macos-*.dmg
|
path: dist/KST4Contest-*-macos-*.dmg
|
||||||
retention-days: 14
|
retention-days: 14
|
||||||
|
|||||||
38
.github/workflows/tagged-release.yml
vendored
38
.github/workflows/tagged-release.yml
vendored
@@ -88,7 +88,7 @@ jobs:
|
|||||||
mkdir -p dist
|
mkdir -p dist
|
||||||
jpackage \
|
jpackage \
|
||||||
--type app-image \
|
--type app-image \
|
||||||
--name praktiKST \
|
--name KST4Contest \
|
||||||
--input target/dist-libs \
|
--input target/dist-libs \
|
||||||
--main-jar app.jar \
|
--main-jar app.jar \
|
||||||
--main-class kst4contest.view.Kst4ContestApplication \
|
--main-class kst4contest.view.Kst4ContestApplication \
|
||||||
@@ -98,41 +98,41 @@ jobs:
|
|||||||
|
|
||||||
- name: Create AppDir metadata
|
- name: Create AppDir metadata
|
||||||
run: |
|
run: |
|
||||||
rm -rf target/praktiKST.AppDir
|
rm -rf target/KST4Contest.AppDir
|
||||||
cp -a dist/praktiKST target/praktiKST.AppDir
|
cp -a dist/KST4Contest target/KST4Contest.AppDir
|
||||||
|
|
||||||
cat > target/praktiKST.AppDir/AppRun << 'EOF'
|
cat > target/KST4Contest.AppDir/AppRun << 'EOF'
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
HERE="$(dirname "$(readlink -f "$0")")"
|
HERE="$(dirname "$(readlink -f "$0")")"
|
||||||
exec "$HERE/bin/praktiKST" "$@"
|
exec "$HERE/bin/KST4Contest" "$@"
|
||||||
EOF
|
EOF
|
||||||
chmod +x target/praktiKST.AppDir/AppRun
|
chmod +x target/KST4Contest.AppDir/AppRun
|
||||||
|
|
||||||
cat > target/praktiKST.AppDir/praktiKST.desktop << 'EOF'
|
cat > target/KST4Contest.AppDir/KST4Contest.desktop << 'EOF'
|
||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Type=Application
|
Type=Application
|
||||||
Name=praktiKST
|
Name=KST4Contest
|
||||||
Exec=praktiKST
|
Exec=KST4Contest
|
||||||
Icon=praktiKST
|
Icon=KST4Contest
|
||||||
Categories=Network;HamRadio;
|
Categories=Network;HamRadio;
|
||||||
Terminal=false
|
Terminal=false
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
if [ -f target/praktiKST.AppDir/lib/praktiKST.png ]; then
|
if [ -f target/KST4Contest.AppDir/lib/KST4Contest.png ]; then
|
||||||
cp target/praktiKST.AppDir/lib/praktiKST.png target/praktiKST.AppDir/praktiKST.png
|
cp target/KST4Contest.AppDir/lib/KST4Contest.png target/KST4Contest.AppDir/KST4Contest.png
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Build AppImage
|
- name: Build AppImage
|
||||||
run: |
|
run: |
|
||||||
wget -q -O target/appimagetool.AppImage https://github.com/AppImage/appimagetool/releases/download/continuous/appimagetool-x86_64.AppImage
|
wget -q -O target/appimagetool.AppImage https://github.com/AppImage/appimagetool/releases/download/continuous/appimagetool-x86_64.AppImage
|
||||||
chmod +x target/appimagetool.AppImage
|
chmod +x target/appimagetool.AppImage
|
||||||
APPIMAGE_EXTRACT_AND_RUN=1 ARCH=x86_64 target/appimagetool.AppImage target/praktiKST.AppDir dist/praktiKST-${{ github.ref_name }}-linux-x86_64.AppImage
|
APPIMAGE_EXTRACT_AND_RUN=1 ARCH=x86_64 target/appimagetool.AppImage target/KST4Contest.AppDir dist/KST4Contest-${{ github.ref_name }}-linux-x86_64.AppImage
|
||||||
|
|
||||||
- name: Upload Linux artifact
|
- name: Upload Linux artifact
|
||||||
uses: actions/upload-artifact@v4.3.4
|
uses: actions/upload-artifact@v4.3.4
|
||||||
with:
|
with:
|
||||||
name: linux-appimage
|
name: linux-appimage
|
||||||
path: dist/praktiKST-${{ github.ref_name }}-linux-x86_64.AppImage
|
path: dist/KST4Contest-${{ github.ref_name }}-linux-x86_64.AppImage
|
||||||
|
|
||||||
build-macos-dmg:
|
build-macos-dmg:
|
||||||
name: Build macOS DMG (${{ matrix.os }})
|
name: Build macOS DMG (${{ matrix.os }})
|
||||||
@@ -164,7 +164,7 @@ jobs:
|
|||||||
mkdir -p dist
|
mkdir -p dist
|
||||||
jpackage \
|
jpackage \
|
||||||
--type dmg \
|
--type dmg \
|
||||||
--name praktiKST \
|
--name KST4Contest \
|
||||||
--input target/dist-libs \
|
--input target/dist-libs \
|
||||||
--main-jar app.jar \
|
--main-jar app.jar \
|
||||||
--main-class kst4contest.view.Kst4ContestApplication \
|
--main-class kst4contest.view.Kst4ContestApplication \
|
||||||
@@ -182,13 +182,13 @@ jobs:
|
|||||||
if [ -z "$DMG" ]; then
|
if [ -z "$DMG" ]; then
|
||||||
echo "No DMG produced by jpackage" && exit 1
|
echo "No DMG produced by jpackage" && exit 1
|
||||||
fi
|
fi
|
||||||
mv "$DMG" "dist/praktiKST-${{ github.ref_name }}-macos-${ARCH}.dmg"
|
mv "$DMG" "dist/KST4Contest-${{ github.ref_name }}-macos-${ARCH}.dmg"
|
||||||
|
|
||||||
- name: Upload macOS artifact
|
- name: Upload macOS artifact
|
||||||
uses: actions/upload-artifact@v4.3.4
|
uses: actions/upload-artifact@v4.3.4
|
||||||
with:
|
with:
|
||||||
name: macos-dmg-${{ matrix.os }}
|
name: macos-dmg-${{ matrix.os }}
|
||||||
path: dist/praktiKST-${{ github.ref_name }}-macos-*.dmg
|
path: dist/KST4Contest-${{ github.ref_name }}-macos-*.dmg
|
||||||
|
|
||||||
build-docs-pdf:
|
build-docs-pdf:
|
||||||
name: Build Documentation PDF
|
name: Build Documentation PDF
|
||||||
@@ -315,7 +315,7 @@ jobs:
|
|||||||
generateReleaseNotes: true
|
generateReleaseNotes: true
|
||||||
artifacts: >-
|
artifacts: >-
|
||||||
release-assets/windows/praktiKST-${{ github.ref_name }}-windows-x64.zip,
|
release-assets/windows/praktiKST-${{ github.ref_name }}-windows-x64.zip,
|
||||||
release-assets/linux/praktiKST-${{ github.ref_name }}-linux-x86_64.AppImage,
|
release-assets/linux/KST4Contest-${{ github.ref_name }}-linux-x86_64.AppImage,
|
||||||
release-assets/macos/praktiKST-${{ github.ref_name }}-macos-*.dmg,
|
release-assets/macos/KST4Contest-${{ github.ref_name }}-macos-*.dmg,
|
||||||
release-assets/docs/KST4Contest-${{ github.ref_name }}-manual-en.pdf,
|
release-assets/docs/KST4Contest-${{ github.ref_name }}-manual-en.pdf,
|
||||||
release-assets/docs/KST4Contest-${{ github.ref_name }}-manual-de.pdf
|
release-assets/docs/KST4Contest-${{ github.ref_name }}-manual-de.pdf
|
||||||
|
|||||||
Reference in New Issue
Block a user