89 lines
2.0 KiB
Bash
Executable File
89 lines
2.0 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
source "$SCRIPT_DIR/common.sh"
|
|
|
|
main() {
|
|
local stable_meta git_meta now stable_alias git_alias
|
|
|
|
ensure_repo_layout
|
|
"$SCRIPT_DIR/package.sh" all
|
|
|
|
stable_meta="$(metadata_file_for_variant stable)"
|
|
git_meta="$(metadata_file_for_variant dxvk-git)"
|
|
[[ -f "$stable_meta" && -f "$git_meta" ]] || die "build metadata missing; run ./scripts/build.sh all first"
|
|
|
|
source "$stable_meta"
|
|
local stable_tool_name="$TOOL_NAME"
|
|
local stable_dxvk="$DXVK_DESCRIBE"
|
|
local stable_commit="$DXVK_COMMIT"
|
|
local stable_archive="$ARCHIVE_NAME"
|
|
stable_alias="$ARCHIVE_ALIAS"
|
|
|
|
source "$git_meta"
|
|
local git_tool_name="$TOOL_NAME"
|
|
local git_dxvk="$DXVK_DESCRIBE"
|
|
local git_commit="$DXVK_COMMIT"
|
|
local git_archive="$ARCHIVE_NAME"
|
|
git_alias="$ARCHIVE_ALIAS"
|
|
|
|
say "Generate checksums"
|
|
(
|
|
cd "$DIST_DIR"
|
|
sha256sum \
|
|
"$stable_archive" \
|
|
"$git_archive" \
|
|
"$stable_alias" \
|
|
"$git_alias" > SHA256SUMS.txt
|
|
awk '{print $1 " " $2}' SHA256SUMS.txt | while read -r sum file; do
|
|
printf "%s %s\n" "$sum" "$file" > "${file}.sha256"
|
|
done
|
|
)
|
|
|
|
now="$(date -u +%Y-%m-%dT%H:%M:%SZ)"
|
|
cat > "$DIST_DIR/release-notes.md" <<EOF
|
|
# $(release_title)
|
|
|
|
Build timestamp: \`${now}\`
|
|
|
|
## Variants
|
|
|
|
- \`${stable_tool_name}\`
|
|
- Proton base: \`${PROTON_TAG}\`
|
|
- Wine series: \`${WINE_SERIES}\`
|
|
- DXVK: \`${stable_dxvk}\`
|
|
- DXVK commit: \`${stable_commit}\`
|
|
- Archive: \`${stable_archive}\`
|
|
|
|
- \`${git_tool_name}\`
|
|
- Proton base: \`${PROTON_TAG}\`
|
|
- Wine series: \`${WINE_SERIES}\`
|
|
- DXVK: \`${git_dxvk}\`
|
|
- DXVK commit: \`${git_commit}\`
|
|
- Archive: \`${git_archive}\`
|
|
- Alias: \`${git_alias}\`
|
|
|
|
## Checksums
|
|
|
|
See \`SHA256SUMS.txt\` and the matching \`.sha256\` files in this release.
|
|
|
|
## Recommended Elsword launch options
|
|
|
|
### Safe / GameGuard Test
|
|
|
|
\`\`\`bash
|
|
${SAFE_LAUNCH_OPTIONS}
|
|
\`\`\`
|
|
|
|
### Performance / Low-Latency Test
|
|
|
|
\`\`\`bash
|
|
${PERF_LAUNCH_OPTIONS}
|
|
\`\`\`
|
|
EOF
|
|
}
|
|
|
|
main "$@"
|