mirror of
https://github.com/cyanfish/naps2.git
synced 2024-11-09 21:45:04 +03:00
.. | ||
Localization | ||
Project | ||
.gitignore | ||
app.config | ||
Cli.cs | ||
N2Config.cs | ||
NAPS2.Tools.csproj | ||
Paths.cs | ||
Program.cs | ||
README.md |
NAPS2.Tools
Tools for NAPS2 building, testing, packaging, verification, etc.
How to run
You will need the latest .NET SDK. Open a terminal in your NAPS2 solution directory and run the following commands:
Powershell
function n2 { dotnet run -p:LangVersion=preview --project NAPS2.Tools -- $args }
n2 build all
Bash
alias n2="dotnet run -p:LangVersion=preview --project NAPS2.Tools --"
n2 build all
Commands
Run n2 help
for a full list of commands and n2 help <command>
for all options for a particular command. Some examples:
n2 clean
n2 test
n2 build exe
n2 pkg exe
n2 verify exe
n2 publish exe
n2 virus exe
n2 share
clean
: Clear out bin/obj subfolderstest
: Run solution testsbuild
: Builds the solution with the specified configuration (debug/exe/msi/zip/all)pkg
: Generates the specified package type, e.g. exe => naps2-{version}-win-x64.exe installerverify
: Installs/extracts the packaged file and runs NAPS2.App.Tests against it- Requires elevation for exe/msi as it does a real install on your local machine (and uninstalls the old NAPS2)
publish
: Runs a series of commands: clean, test, build, pkg, verifyvirus
: Uploads a package to VirusTotal for a false positive checkshare
: Syncs local packages with a cloud folder (to help with cross-platform packaging)