mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-24 20:28:06 +02:00
Dynamic (#77)
This commit is contained in:
parent
55247b7fcd
commit
991c84a1eb
1464 changed files with 225448 additions and 1985 deletions
11
.github/workflows/release-build.yml
vendored
11
.github/workflows/release-build.yml
vendored
|
|
@ -110,7 +110,12 @@ jobs:
|
|||
BIN_PATH=target/$TARGET/release/$BIN$EXT
|
||||
mkdir -p dist
|
||||
ARCHIVE=$BIN-$TARGET.zip
|
||||
zip -9 "dist/$ARCHIVE" "$BIN_PATH" THIRDPARTY-LICENSES.html LICENSE* COPYING*
|
||||
files=("$BIN_PATH" THIRDPARTY-LICENSES.html)
|
||||
shopt -s nullglob
|
||||
license_files=(LICENSE* COPYING*)
|
||||
shopt -u nullglob
|
||||
files+=("${license_files[@]}")
|
||||
zip -9 "dist/$ARCHIVE" "${files[@]}"
|
||||
echo "ASSET=$ARCHIVE" >> "$GITHUB_ENV"
|
||||
|
||||
- name: Package (Windows)
|
||||
|
|
@ -123,9 +128,11 @@ jobs:
|
|||
$BinPath = "target/$Target/release/$Bin$Ext"
|
||||
New-Item -ItemType Directory -Path dist -Force | Out-Null
|
||||
$Archive = "$Bin-$Target.zip"
|
||||
$LicenseFiles = @(Get-ChildItem -Path 'LICENSE*', 'COPYING*' -File -ErrorAction SilentlyContinue | ForEach-Object { $_.FullName })
|
||||
$Files = @($BinPath, 'THIRDPARTY-LICENSES.html') + $LicenseFiles
|
||||
|
||||
Compress-Archive `
|
||||
-Path $BinPath, 'THIRDPARTY-LICENSES.html', 'LICENSE*', 'COPYING*' `
|
||||
-Path $Files `
|
||||
-DestinationPath "dist/$Archive" `
|
||||
-CompressionLevel Optimal
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue