Reduce release package false positives
Some checks failed
build / build-test-publish (push) Has been cancelled

This commit is contained in:
2026-06-03 00:29:20 +09:00
parent cba5243ce4
commit d29752a91e
17 changed files with 56 additions and 284 deletions

View File

@@ -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"

View File

@@ -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