mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
chore: update uno sample app with latest (#584)
* chore: update uno sample app with latest * Cleaning up UnoSample to use SampleHelper Updated the top level Directory.Build.targets to support samples with solutions and nested directories. Added build scripts. * Adding Uno sample to GHA * Remove framework bootstrap * Fixing mainExe name on non-windows --------- Co-authored-by: Kevin Bost <kitokeboo@gmail.com>
This commit is contained in:
21
samples/CSharpUno/build.sh
Normal file
21
samples/CSharpUno/build.sh
Normal file
@@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Check if version parameter is provided
|
||||
if [ "$#" -ne 1 ]; then
|
||||
echo "Version number is required."
|
||||
echo "Usage: ./build.sh [version]"
|
||||
exit 1
|
||||
fi
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
|
||||
BUILD_VERSION="$1"
|
||||
RELEASE_DIR="$SCRIPT_DIR/UnoSample/releases"
|
||||
PUBLISH_DIR="$SCRIPT_DIR/UnoSample/publish"
|
||||
|
||||
echo ""
|
||||
echo Compiling CSharpUno with dotnet...
|
||||
dotnet publish -c Release --framework net9.0-desktop -o "$PUBLISH_DIR" UnoSample/UnoSample.csproj
|
||||
|
||||
echo ""
|
||||
echo "Building Velopack Release v$BUILD_VERSION"
|
||||
vpk pack -u CSharpUno -v $BUILD_VERSION -o "$RELEASE_DIR" -p "$PUBLISH_DIR" --mainExe UnoSample
|
||||
Reference in New Issue
Block a user