Skip to content

Commit

Permalink
fix: self-contained binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
jlarmstrongiv committed Sep 1, 2024
1 parent 387c588 commit e7f2ed1
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 15 deletions.
28 changes: 14 additions & 14 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@ dotnet publish --runtime win-arm64
dotnet publish --runtime win-x64
dotnet publish --runtime win-x86

gzip -k 'bin/Release/net8.0/osx-arm64/bunny-sdk'
gzip -k 'bin/Release/net8.0/osx-x64/bunny-sdk'
gzip -k 'bin/Release/net8.0/linux-arm64/bunny-sdk'
gzip -k 'bin/Release/net8.0/linux-x64/bunny-sdk'
gzip -k 'bin/Release/net8.0/win-arm64/bunny-sdk.exe'
gzip -k 'bin/Release/net8.0/win-x64/bunny-sdk.exe'
gzip -k 'bin/Release/net8.0/win-x86/bunny-sdk.exe'
gzip -k 'bin/Release/net8.0/osx-arm64/publish/bunny-sdk'
gzip -k 'bin/Release/net8.0/osx-x64/publish/bunny-sdk'
gzip -k 'bin/Release/net8.0/linux-arm64/publish/bunny-sdk'
gzip -k 'bin/Release/net8.0/linux-x64/publish/bunny-sdk'
gzip -k 'bin/Release/net8.0/win-arm64/publish/bunny-sdk.exe'
gzip -k 'bin/Release/net8.0/win-x64/publish/bunny-sdk.exe'
gzip -k 'bin/Release/net8.0/win-x86/publish/bunny-sdk.exe'

rm -rf build
mkdir build
mv 'bin/Release/net8.0/osx-arm64/bunny-sdk.gz' 'build/bunny-sdk-osx-arm64.gz'
mv 'bin/Release/net8.0/osx-x64/bunny-sdk.gz' 'build/bunny-sdk-osx-x64.gz'
mv 'bin/Release/net8.0/linux-arm64/bunny-sdk.gz' 'build/bunny-sdk-linux-arm64.gz'
mv 'bin/Release/net8.0/linux-x64/bunny-sdk.gz' 'build/bunny-sdk-linux-x64.gz'
mv 'bin/Release/net8.0/win-arm64/bunny-sdk.exe.gz' 'build/bunny-sdk-win-arm64.gz'
mv 'bin/Release/net8.0/win-x64/bunny-sdk.exe.gz' 'build/bunny-sdk-win-x64.gz'
mv 'bin/Release/net8.0/win-x86/bunny-sdk.exe.gz' 'build/bunny-sdk-win-x86.gz'
mv 'bin/Release/net8.0/osx-arm64/publish/bunny-sdk.gz' 'build/bunny-sdk-osx-arm64.gz'
mv 'bin/Release/net8.0/osx-x64/publish/bunny-sdk.gz' 'build/bunny-sdk-osx-x64.gz'
mv 'bin/Release/net8.0/linux-arm64/publish/bunny-sdk.gz' 'build/bunny-sdk-linux-arm64.gz'
mv 'bin/Release/net8.0/linux-x64/publish/bunny-sdk.gz' 'build/bunny-sdk-linux-x64.gz'
mv 'bin/Release/net8.0/win-arm64/publish/bunny-sdk.exe.gz' 'build/bunny-sdk-win-arm64.gz'
mv 'bin/Release/net8.0/win-x64/publish/bunny-sdk.exe.gz' 'build/bunny-sdk-win-x64.gz'
mv 'bin/Release/net8.0/win-x86/publish/bunny-sdk.exe.gz' 'build/bunny-sdk-win-x86.gz'
5 changes: 4 additions & 1 deletion bunny-sdk.csproj
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Version>0.0.5</Version>
<Version>0.0.6</Version>
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<PublishSingleFile>true</PublishSingleFile>
<SelfContained>true</SelfContained>
<PublishTrimmed>true</PublishTrimmed>
<PublishReadyToRun>true</PublishReadyToRun>
<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>
<RootNamespace>bunny_sdk_cli</RootNamespace>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
Expand Down

0 comments on commit e7f2ed1

Please sign in to comment.