Build changes and fixes
This commit is contained in:
3 files changed
+7
-7
No files matched your search
+1
-1
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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
|
||||
@@ -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>
|
||||
Reference in new issue
Block a user