Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/workflows/build-all.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
with:
name: oolite-linux-appimage-${{matrix.flavour}}
path: |
build/oolite*.AppImage
build/Oolite*.AppImage
retention-days: 5

build-flatpak:
Expand Down Expand Up @@ -220,21 +220,21 @@ jobs:
# It should move the 'latest' tag automatically.
- name: Create Release
id: create_release
uses: "marvinpinto/action-automatic-releases@latest"
uses: softprops/action-gh-release@v3
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
# automatic_release_tag: "latest"
automatic_release_tag: "${{ steps.version.outputs.VER_FULL }}"
token: "${{ secrets.GITHUB_TOKEN }}"
name: "Oolite ${{ steps.version.outputs.VER_FULL }}"
tag_name: "${{ steps.version.outputs.VER_FULL }}"
prerelease: true
title: "Oolite ${{ steps.version.outputs.VER_FULL }}"
files: |
artifacts/oolite-windows-nsis-deployment/OoliteInstall-*.exe
artifacts/oolite-windows-nsis-test/OoliteInstall-*.exe
artifacts/oolite-windows-nsis-dev/OoliteInstall-*-dev.exe
artifacts/oolite-windows-nsis-dev/OoliteInstall-*.exe
artifacts/oolite-linux-appimage-deployment/*.AppImage
artifacts/oolite-linux-appimage-test/*.AppImage
artifacts/oolite-linux-appimage-dev/*.AppImage
artifacts/oolite-linux-flatpak-deployment/*.flatpak

- name: Remove old workflow runs
if: github.ref == 'refs/heads/master' || endsWith(github.ref, 'maintenance')
uses: Mattraks/delete-workflow-runs@v2
Expand Down
7 changes: 6 additions & 1 deletion ShellScripts/Linux/install_package_fn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@ install_package() {
# This CASE statement is the dictionary.
# Add your packages here.
case "$generic_name" in
"git") pkg_name="git" ;;
"procps")
case "$CURRENT_DISTRO" in
debian) pkg_name="procps" ;;
redhat) pkg_name="procps-ng" ;;
arch) pkg_name="procps-ng" ;;
esac ;;

"base-devel")
case "$CURRENT_DISTRO" in
Expand Down
3 changes: 3 additions & 0 deletions ShellScripts/Linux/install_packages_root.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ run_script() {
source install_gitversion_fn.sh
source install_package_fn.sh

if ! install_package procps; then
return 1
fi
if ! install_package base-devel; then
return 1
fi
Expand Down
8 changes: 1 addition & 7 deletions installers/appimage/create_appimage_fn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,7 @@ create_appimage() {
export ICON
local DESKTOP="$appshr/applications/space.oolite.Oolite.desktop"
export DESKTOP
local suffix
if [[ "$build_type" != "deployment" ]]; then
suffix="_$build_type-$ver_full"
else
suffix="-$ver_full"
fi
local OUTNAME="oolite${suffix}-${arch}.AppImage"
local OUTNAME="Oolite-$ver_full-$build_type-$arch.AppImage"
export OUTNAME

echo "Building AppDir for AppImage..."
Expand Down
13 changes: 4 additions & 9 deletions installers/flatpak/create_flatpak_fn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,9 @@ create_flatpak() {
return 1
fi

local suffix
if [[ "$build_type" != "deployment" ]]; then
suffix="_$build_type-$ver_full"
else
suffix="-$ver_full"
fi
local ARCH=$(uname -m)
local filename="space.oolite.Oolite${suffix}-${ARCH}.flatpak"
local arch=$(uname -m)
local suffix="-$ver_full-$build_type-$arch"
local filename="space.oolite.Oolite${suffix}.flatpak"
echo "Creating Flatpak $filename..."
if ! flatpak build-bundle \
repo \
Expand All @@ -107,7 +102,7 @@ create_flatpak() {
echo "❌ Flatpak bundle creation failed!" >&2
return 1
fi
local debugname="space.oolite.Oolite.Debug${suffix}-${ARCH}.flatpak"
local debugname="space.oolite.Oolite.Debug${suffix}.flatpak"
if ! flatpak build-bundle \
--runtime \
repo \
Expand Down
2 changes: 1 addition & 1 deletion installers/win32/OOlite.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
!define EXTVER "-test" ; Official distribution with OXP developer tools
!define ADDCHANGELOG 1 ; Official distributions go with a changelog file
!else
!define EXTVER ""
!define EXTVER "-deployment"
!define ADDCHANGELOG 1 ; Official distributions go with a changelog file
!endif
!else
Expand Down