https://github.com/kant2002/FSharpPacker Skip to content Navigation Menu Toggle navigation Sign in * Product + GitHub Copilot Write better code with AI + Security Find and fix vulnerabilities + Actions Automate any workflow + Codespaces Instant dev environments + Issues Plan and track work + Code Review Manage code changes + Discussions Collaborate outside of code + Code Search Find more, search less Explore + All features + Documentation + GitHub Skills + Blog * Solutions By company size + Enterprises + Small and medium teams + Startups By use case + DevSecOps + DevOps + CI/CD + View all use cases By industry + Healthcare + Financial services + Manufacturing + Government + View all industries View all solutions * Resources Topics + AI + DevOps + Security + Software Development + View all Explore + Learning Pathways + White papers, Ebooks, Webinars + Customer Stories + Partners + Executive Insights * Open Source + GitHub Sponsors Fund open source developers + The ReadME Project GitHub community articles Repositories + Topics + Trending + Collections * Enterprise + Enterprise platform AI-powered developer platform Available add-ons + Advanced Security Enterprise-grade security features + GitHub Copilot Enterprise-grade AI features + Premium Support Enterprise-grade 24/7 support * Pricing Search or jump to... Search code, repositories, users, issues, pull requests... Search [ ] Clear Search syntax tips Provide feedback We read every piece of feedback, and take your input very seriously. [ ] [ ] Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Name [ ] Query [ ] To see all available qualifiers, see our documentation. Cancel Create saved search Sign in Sign up Reseting focus You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert {{ message }} kant2002 / FSharpPacker Public * Notifications You must be signed in to change notification settings * Fork 3 * Star 97 Packs FSX files into executable License MIT license 97 stars 3 forks Branches Tags Activity Star Notifications You must be signed in to change notification settings * Code * Issues 2 * Pull requests 0 * Actions * Projects 0 * Security * Insights Additional navigation options * Code * Issues * Pull requests * Actions * Projects * Security * Insights kant2002/FSharpPacker main BranchesTags [ ] Go to file Code Folders and files Name Name Last commit Last commit message date Latest commit History 43 Commits .github/workflows .github/workflows .idea/ .idea/ .idea.FSharpPacker/ .idea.FSharpPacker/ .idea .idea FSharpPacker.FSharp FSharpPacker.FSharp FSharpPacker.Tests FSharpPacker.Tests .gitignore .gitignore Dockerfile Dockerfile FSharpPacker.sln FSharpPacker.sln LICENSE LICENSE README.md README.md build.nix build.nix deps.nix deps.nix flake.lock flake.lock flake.nix flake.nix nuget.config nuget.config View all files Repository files navigation * README * MIT license FSharp Packer This tool allows package FSX files as self-contained executables. Installation: dotnet tool install --global FSharpPacker Nix (Nix/NixOS) Nix w/ Flakes nix profile install github:kant2002/FSharpPacker Run without installing nix run github:kant2002/FSharpPacker -- --help Usage USAGE: fspack [--help] [--framework ] [--verbose] [--noselfcontained] [--aot] FILE: .fsx file to convert to executable file OPTIONS: --framework, -f Specify target framework (e.g. net6.0) --verbose, -v Verbose output --noselfcontained, -nsc Don't publish as self-contained (with dotnet runtime included) --singefile, -sf Produce single file --aot, -aot Enable AOT-compilation --help display this list of options. Please note that the app is produced as self-contained by default. Simple usage: fspack fsx-file.fsx [] For example: fspack FSharpPacker.Tests\Samples\LoadFile.fsx -o test -r win-x64 test\LoadFile.exe for AOT build fspack FSharpPacker.Tests\Samples\LoadFile.fsx -aot -o test-aot -r win-x64 -f net7.0 test-aot\LoadFile.exe Self-contained with dotnet 7 and a single-file executable: fspack FSharpPacker.Tests/Samples/LoadFile.fsx -o test-single-file -r win-x64 -f net7.0 -sf -p:EnableCompressionInSingleFile=true test-single-file\LoadFile.exe Supported FSX directives Directive Status Notes #load #r "path\file.dll" #r "nuget: package" #r "nuget: package, version" #load #i "nuget: source-feed" #quit This is tricky and require deep #r "custom: custom-path" involvement with FSharp.Compiler.Services #I "custom: custom-path-search-hint" Ignored FSX directives Directive #help #time Producing Nuget package dotnet pack FSharpPacker.FSharp -c Release dotnet tool install FSharpPacker --global --add-source FSharpPacker.FSharp\bin\Release\ dotnet tool uninstall -g FSharpPacker About Packs FSX files into executable Topics hacktoberfest Resources Readme License MIT license Activity Stars 97 stars Watchers 3 watching Forks 3 forks Report repository Releases 1 Release 1.0.0 Latest Sep 23, 2023 Packages 0 No packages published Contributors 3 * @kant2002 kant2002 Andrii Kurdiumov * @delneg delneg Denis * @Szer Szer Ayrat Hudaygulov Languages * Nix 44.8% * F# 34.6% * C# 19.9% * Dockerfile 0.7% Footer (c) 2024 GitHub, Inc. Footer navigation * Terms * Privacy * Security * Status * Docs * Contact * Manage cookies * Do not share my personal information You can't perform that action at this time.