Build changes and fixes

This commit is contained in:
Lncvrt committed 2025-06-23 16:40:44 -07:00
1 parent a5560c266f
commit 54ef6c08c6
3 files changed
+7 -7

No files matched your search

+1 -1
View File
@@ -60,7 +60,7 @@ class Program {
var key = new byte[16];
using var rng = RandomNumberGenerator.Create();
rng.GetBytes(key);
Console.WriteLine("Generated Key (hex): " + Convert.ToHexStringLower(key));
Console.WriteLine("Generated Key: " + Convert.ToHexStringLower(key));
}
else if (selected == 3)
{
+6 -3
View File
@@ -2,7 +2,6 @@
set -e
cfg=Release
tfm=net9.0
outdir=bin/$cfg
zipdir=$(pwd)/builds
rids=(
@@ -22,12 +21,16 @@ if [[ -z "$version" ]]; then
version="0.0.0"
fi
rm -rf bin
rm -rf obj
rm -rf "$zipdir"
mkdir -p "$zipdir"
name=$(basename "$projfile" .csproj)
for rid in "${rids[@]}"; do
dotnet publish "$projfile" -c $cfg -r $rid --self-contained false -o "$outdir/$rid/publish"
7z a -tzip "$zipdir/${name}-${version}-${rid}.zip" "$outdir/$rid/publish/*"
dotnet publish "$projfile" -c $cfg -r $rid --self-contained true -o "$outdir/$rid/publish"
pushd "$outdir/$rid/publish"
7z a -tzip "$zipdir/${name}-${version}-${rid}.zip" ./*
popd
done
-3
View File
@@ -6,8 +6,5 @@
<Version>1.0.0</Version>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<DebugType>none</DebugType>
<DebugSymbols>false</DebugSymbols>
<GenerateRuntimeConfigurationFiles>false</GenerateRuntimeConfigurationFiles>
</PropertyGroup>
</Project>