principia/packaging/windows_portable.sh
ROllerozxa 7f87a48538 Add program for portable Windows builds to register a per-user protocol handler
Replaces the old play_community_level.bat Batch script that was bundled with portable
2026-06-21 16:13:53 +02:00

19 lines
390 B
Bash

#!/bin/bash -eu
# This script relies on windows_release.sh being run to prepare the release/ directory
touch release/portable.txt
cp register-protocol-handler.exe release/
cp -r ../data/ release/
# juggling time
mv principia.exe principia_exe.exe
mv release/ Principia/
7z a principia-portable.7z Principia/
# switch it back
mv Principia/ release/
mv principia_exe.exe principia.exe