mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
* Rename avalonia & wpf samples * Rename rest of samples * fix sample readme * Fix compat util tests * rename / move all src projects * remove package lock files and move libC# again * Add rust lib and cargo workspace * Replace locksmith lib with new filelocksmith-rs library * Deprecated type * fix setup compile * Use thiserror for error handling * Rename some enums and formatting * Add missing SHA256 * wip c++ library * cpp wip * alphabetize readme * Try to get build working again * Fix some conditionally compiled bits * cross config should be in workspace root * Fix PathHelper for new rust target dir * Missed one old path to velopack.csproj * remove obsolete coverage code * testawareapp.exe no longer exists
23 lines
642 B
Bash
23 lines
642 B
Bash
#!/bin/bash
|
|
|
|
# Find the absolute path of the script
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
|
|
# Check if version parameter is provided
|
|
if [ "$#" -ne 1 ]; then
|
|
echo "Version number is required."
|
|
echo "Usage: ./build.sh [version]"
|
|
exit 1
|
|
fi
|
|
|
|
BUILD_VERSION="$1"
|
|
RELEASE_DIR="$SCRIPT_DIR/releases"
|
|
PUBLISH_DIR="$SCRIPT_DIR/publish"
|
|
|
|
echo ""
|
|
echo "Compiling VelopackCSharpAvalonia with dotnet..."
|
|
dotnet publish -c Release --self-contained -r linux-x64 -o "$PUBLISH_DIR"
|
|
|
|
echo ""
|
|
echo "Building Velopack Release v$BUILD_VERSION"
|
|
vpk pack -u VelopackCSharpAvalonia -v $BUILD_VERSION -o "$RELEASE_DIR" -p "$PUBLISH_DIR" |