Skip to content

Commit 281b0fc

Browse files
authored
Merge pull request #327 from LoopPerfect/improvement/lean-bundle
* Reduces the size of the final bundle
2 parents 947baa4 + f2acd19 commit 281b0fc

File tree

6 files changed

+12
-9
lines changed

6 files changed

+12
-9
lines changed

buckaroo-cli/buckaroo-cli.fsproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
<TargetFramework>netcoreapp2.1</TargetFramework>
66
<IsPackable>false</IsPackable>
77
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
8+
<RootAllApplicationAssemblies>false</RootAllApplicationAssemblies>
9+
<IlcGenerateCompleteTypeMetadata>false</IlcGenerateCompleteTypeMetadata>
810
</PropertyGroup>
911

1012
<ItemGroup>

buckaroo/Archive.fs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ let private extractRoot (archive : IArchive) (pattern : string) =
1919
match candidates with
2020
| head::[] -> head
2121
| [] ->
22-
raise <| new Exception("No directories matched the root")
22+
raise <| Exception ("No directories matched the root")
2323
| xs ->
24-
raise <| new Exception("Multiple directories match the root: " + (string xs))
24+
raise <| Exception ("Multiple directories match the root: " + (string xs))
2525

2626
let extractTo (pathToArchive : string) (pathToExtraction : string) (stripPrefix : string option) = async {
2727
use archive = Archives.Zip.ZipArchive.Open(pathToArchive) :> IArchive
2828

29-
let extractionOptions = new ExtractionOptions()
29+
let extractionOptions = ExtractionOptions ()
3030
extractionOptions.ExtractFullPath <- false
3131
extractionOptions.Overwrite <- true
3232

buckaroo/Constants.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module Buckaroo.Constants
22

33
[<Literal>]
4-
let Version = "2.1.0"
4+
let Version = "2.1.1"
55

66
[<Literal>]
77
let PackagesDirectory = "buckaroo"

buckaroo/buckaroo.fsproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@
6060
<ItemGroup>
6161
<PackageReference Include="FParsec" Version="1.0.3" />
6262
<PackageReference Include="FSharp.Control.AsyncSeq" Version="2.0.21" />
63-
<PackageReference Include="FSharp.Control.Reactive" Version="4.1.0" />
6463
<PackageReference Include="FSharp.Data" Version="3.0.0" />
6564
<PackageReference Include="FSharpx.Async" Version="1.13.2" />
6665
<PackageReference Include="FSharpx.Collections" Version="1.17.0" />

warp-bundle-linux.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22

33
export CppCompilerAndLinker=clang
44

5-
wget -O warp-packer https://github.com/dgiagio/warp/releases/download/v0.3.0/linux-x64.warp-packer
5+
wget -c -O warp-packer https://github.com/dgiagio/warp/releases/download/v0.3.0/linux-x64.warp-packer
66

77
chmod +x ./warp-packer
88
./warp-packer --version
99

10-
dotnet publish ./buckaroo-cli/ -c Release -r linux-x64
10+
dotnet publish ./buckaroo-cli/ -c Release -r linux-x64
1111

1212
mkdir -p warp
13+
rm -rf ./warp/buckaroo-linux
1314

1415
./warp-packer --arch linux-x64 --exec buckaroo-cli --input_dir ./buckaroo-cli/bin/Release/netcoreapp2.1/linux-x64 --output warp/buckaroo-linux
1516
./warp/buckaroo-linux

warp-bundle-macos.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
#!/bin/bash
22

3-
wget -O warp-packer https://github.com/dgiagio/warp/releases/download/v0.3.0/macos-x64.warp-packer
3+
wget -O warp-packer https://github.com/dgiagio/warp/releases/download/v0.3.0/macos-x64.warp-packer
44

55
chmod +x ./warp-packer
66
./warp-packer --version
77

8-
dotnet publish ./buckaroo-cli/ -c Release -r osx-x64
8+
dotnet publish ./buckaroo-cli/ -c Release -r osx-x64
99

1010
mkdir -p warp
11+
rm -rf ./warp/buckaroo-macos
1112

1213
./warp-packer --arch macos-x64 --exec buckaroo-cli --input_dir ./buckaroo-cli/bin/Release/netcoreapp2.1/osx-x64 --output warp/buckaroo-macos
1314
./warp/buckaroo-macos

0 commit comments

Comments
 (0)