Reduce release package false positives
Some checks failed
build / build-test-publish (push) Has been cancelled
Some checks failed
build / build-test-publish (push) Has been cancelled
This commit is contained in:
@@ -24,8 +24,8 @@ while [[ $# -gt 0 ]]; do
|
||||
Usage:
|
||||
scripts/package-win-x64.sh [--publish-dir path] [--zip path]
|
||||
|
||||
Creates a portable Windows x64 ZIP containing Ehwrj.exe, native DLLs,
|
||||
README, SECURITY, LICENSE, RUNNING.txt, and SHA256SUMS.txt.
|
||||
Creates a portable Windows x64 ZIP containing the published Ehwrj app,
|
||||
release README, SECURITY, LICENSE, RUNNING.txt, and SHA256SUMS.txt.
|
||||
EOF
|
||||
exit 0
|
||||
;;
|
||||
@@ -44,10 +44,10 @@ fi
|
||||
rm -rf "$PACKAGE_DIR"
|
||||
mkdir -p "$PACKAGE_DIR"
|
||||
|
||||
cp "$PUBLISH_DIR/Ehwrj.exe" "$PACKAGE_DIR/"
|
||||
cp "$PUBLISH_DIR"/*.dll "$PACKAGE_DIR/"
|
||||
cp "$ROOT_DIR/README.md" "$PACKAGE_DIR/README.md"
|
||||
cp "$ROOT_DIR/SECURITY.md" "$PACKAGE_DIR/SECURITY.md"
|
||||
cp -a "$PUBLISH_DIR"/. "$PACKAGE_DIR"/
|
||||
find "$PACKAGE_DIR" -type f -name '*.pdb' -delete
|
||||
cp "$ROOT_DIR/docs/release-readme.md" "$PACKAGE_DIR/README.md"
|
||||
cp "$ROOT_DIR/docs/release-security.md" "$PACKAGE_DIR/SECURITY.md"
|
||||
cp "$ROOT_DIR/LICENSE" "$PACKAGE_DIR/LICENSE"
|
||||
|
||||
cat > "$PACKAGE_DIR/RUNNING.txt" <<'EOF'
|
||||
@@ -68,7 +68,9 @@ EOF
|
||||
|
||||
(
|
||||
cd "$PACKAGE_DIR"
|
||||
sha256sum * > SHA256SUMS.txt
|
||||
find . -type f ! -name SHA256SUMS.txt -printf '%P\0' \
|
||||
| sort -z \
|
||||
| xargs -0 sha256sum > SHA256SUMS.txt
|
||||
)
|
||||
|
||||
rm -f "$ZIP_PATH"
|
||||
|
||||
@@ -14,5 +14,5 @@ dotnet publish "$ROOT_DIR/src/Ehwrj.App/Ehwrj.App.csproj" \
|
||||
-c Release \
|
||||
-r win-x64 \
|
||||
--self-contained true \
|
||||
-p:PublishSingleFile=true
|
||||
-p:PublishSingleFile=false
|
||||
"$ROOT_DIR/scripts/package-win-x64.sh" >/dev/null
|
||||
|
||||
Reference in New Issue
Block a user