mirror of
https://github.com/csd4ni3l/ember-keeper.git
synced 2026-01-01 12:33:43 +01:00
Compare commits
1 Commits
6ecf2b7650
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| eb7be683de |
25
.github/workflows/main.yml
vendored
25
.github/workflows/main.yml
vendored
@@ -42,7 +42,7 @@ jobs:
|
|||||||
include-data-dir: assets=assets
|
include-data-dir: assets=assets
|
||||||
include-data-files: CREDITS=CREDITS
|
include-data-files: CREDITS=CREDITS
|
||||||
mode: onefile
|
mode: onefile
|
||||||
output-file: FleetCommander
|
output-file: EmberKeeper
|
||||||
|
|
||||||
- name: Locate and rename executable (Linux)
|
- name: Locate and rename executable (Linux)
|
||||||
if: matrix.os == 'ubuntu-22.04'
|
if: matrix.os == 'ubuntu-22.04'
|
||||||
@@ -51,29 +51,29 @@ jobs:
|
|||||||
echo "Searching for built Linux binary..."
|
echo "Searching for built Linux binary..."
|
||||||
# List to help debugging when paths change
|
# List to help debugging when paths change
|
||||||
ls -laR . | head -n 500 || true
|
ls -laR . | head -n 500 || true
|
||||||
BIN=$(find . -maxdepth 4 -type f -name 'FleetCommander*' -perm -u+x | head -n1 || true)
|
BIN=$(find . -maxdepth 4 -type f -name 'EmberKeeper*' -perm -u+x | head -n1 || true)
|
||||||
if [ -z "${BIN}" ]; then
|
if [ -z "${BIN}" ]; then
|
||||||
echo "ERROR: No Linux binary found after build"
|
echo "ERROR: No Linux binary found after build"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
echo "Found: ${BIN}"
|
echo "Found: ${BIN}"
|
||||||
mkdir -p build_output
|
mkdir -p build_output
|
||||||
cp "${BIN}" build_output/FleetCommander.bin
|
cp "${BIN}" build_output/EmberKeeper.bin
|
||||||
chmod +x build_output/FleetCommander.bin
|
chmod +x build_output/EmberKeeper.bin
|
||||||
echo "Executable ready: build_output/FleetCommander.bin"
|
echo "Executable ready: build_output/EmberKeeper.bin"
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Locate and rename executable (Windows)
|
- name: Locate and rename executable (Windows)
|
||||||
if: matrix.os == 'windows-latest'
|
if: matrix.os == 'windows-latest'
|
||||||
run: |
|
run: |
|
||||||
Write-Host "Searching for built Windows binary..."
|
Write-Host "Searching for built Windows binary..."
|
||||||
Get-ChildItem -Recurse -File -Filter 'FleetCommander*.exe' | Select-Object -First 1 | ForEach-Object {
|
Get-ChildItem -Recurse -File -Filter 'EmberKeeper*.exe' | Select-Object -First 1 | ForEach-Object {
|
||||||
Write-Host ("Found: " + $_.FullName)
|
Write-Host ("Found: " + $_.FullName)
|
||||||
New-Item -ItemType Directory -Force -Path build_output | Out-Null
|
New-Item -ItemType Directory -Force -Path build_output | Out-Null
|
||||||
Copy-Item $_.FullName "build_output\FleetCommander.exe"
|
Copy-Item $_.FullName "build_output\EmberKeeper.exe"
|
||||||
Write-Host "Executable ready: build_output\FleetCommander.exe"
|
Write-Host "Executable ready: build_output\EmberKeeper.exe"
|
||||||
}
|
}
|
||||||
if (!(Test-Path build_output\FleetCommander.exe)) {
|
if (!(Test-Path build_output\EmberKeeper.exe)) {
|
||||||
Write-Error "ERROR: No Windows binary found after build"
|
Write-Error "ERROR: No Windows binary found after build"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
@@ -83,7 +83,7 @@ jobs:
|
|||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.platform }}
|
name: ${{ matrix.platform }}
|
||||||
path: build_output/FleetCommander.*
|
path: build_output/EmberKeeper.*
|
||||||
|
|
||||||
release:
|
release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -114,5 +114,6 @@ jobs:
|
|||||||
--notes "Automated build for $TAG"
|
--notes "Automated build for $TAG"
|
||||||
fi
|
fi
|
||||||
# Upload the executables directly (no zip files)
|
# Upload the executables directly (no zip files)
|
||||||
gh release upload "$TAG" downloads/linux/FleetCommander.bin --clobber
|
gh release upload "$TAG" downloads/linux/EmberKeeper.bin --clobber
|
||||||
gh release upload "$TAG" downloads/windows/FleetCommander.exe --clobber
|
gh release upload "$TAG" downloads/windows/EmberKeeper.exe
|
||||||
|
--clobber
|
||||||
|
|||||||
Reference in New Issue
Block a user