-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
53 additions
and
56 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
## Publish | ||
|
||
### Tag | ||
```shell | ||
git tag -d v1.2.3 && git push --delete origin v1.2.3 | ||
git tag v1.2.3 && git push origin --tags | ||
``` | ||
|
||
### Build release artifacts | ||
|
||
Windows: | ||
```shell | ||
./scripts/deploy.sh win-x64 | ||
``` | ||
|
||
macOS: | ||
```shell | ||
./scripts/deploy.sh osx-x64 | ||
``` | ||
|
||
Linux: | ||
```shell | ||
./scripts/deploy.sh linux-x64 | ||
``` |
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
arch="$1" | ||
publishDir=./bin/Release/net5.0/${arch}/publish | ||
rm -rf ${publishDir}/* | ||
cd ./src/CommandLine && \ | ||
dotnet publish -c Release -r ${arch} -p:PublishSingleFile=true --self-contained true && \ | ||
mkdir -p ../../dist && \ | ||
cd ${publishDir} && \ | ||
if test -f ./NuSave.CommandLine; then | ||
mv NuSave.CommandLine nusave | ||
fi | ||
if test -f ./NuSave.CommandLine.exe; then | ||
mv NuSave.CommandLine.exe nusave.exe | ||
fi | ||
zip -r ../../../../../../../dist/nusave-3.0.0-${arch}.zip . && \ | ||
cd ../../../../../../../ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
namespace NuSave | ||
namespace NuSave.CommandLine | ||
{ | ||
using System; | ||
using System.Collections.Generic; | ||
|
@@ -35,6 +35,7 @@ private static void CacheCommand(CommandLineApplication app) | |
{ | ||
app.Command("cache", target => | ||
{ | ||
target.HelpOption("--help | -h"); | ||
SlnCommand(target); | ||
CsprojCommand(target); | ||
PackageCommand(target); | ||
|
@@ -53,6 +54,7 @@ private static void SlnCommand(CommandLineApplication target) | |
|
||
target.Command("sln", sln => | ||
{ | ||
sln.HelpOption("--help | -h"); | ||
slnPath = sln.Argument("path", "Solution file (.sln)"); | ||
sources = sln.Option("--source", "Additional sources, comma separated", CommandOptionType.SingleValue); | ||
targetFrameworks = sln.Option("--targetFrameworks", | ||
|
@@ -98,6 +100,7 @@ private static void CsprojCommand(CommandLineApplication target) | |
|
||
target.Command("csproj", csproj => | ||
{ | ||
csproj.HelpOption("--help | -h"); | ||
csprojPath = csproj.Argument("path", "Project file (.csproj)"); | ||
sources = csproj.Option("--source", "Additional sources, comma separated", CommandOptionType.SingleValue); | ||
targetFrameworks = csproj.Option("--targetFrameworks", | ||
|
@@ -142,6 +145,7 @@ private static void PackageCommand(CommandLineApplication target) | |
|
||
target.Command("package", package => | ||
{ | ||
package.HelpOption("--help | -h"); | ||
idAndVersion = package.Argument("id@version", "Package ID and Version, example: [email protected]"); | ||
sources = package.Option("--source", "Additional sources, comma separated", CommandOptionType.SingleValue); | ||
targetFrameworks = package.Option("--targetFrameworks", | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters