Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
dotnet-version: 10.0.x

- name: Publish
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
dotnet-version: 10.0.x

- uses: actions/checkout@v4
- name: Build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/github-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
dotnet-version: '10.0.x'

- name: Build
run: dotnet build --configuration Release
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,13 @@ jobs:
uses: battila7/get-version-action@v2

- name: Pack
run: dotnet pack src/AnovSyntax/AnovSyntax.csproj -c Release -p:PackageVersion=${{ steps.get_version.outputs.version-without-v }}
run: |
dotnet pack src/AnovSyntax/AnovSyntax.csproj -c Release -p:PackageVersion=${{ steps.get_version.outputs.version-without-v }}
dotnet pack src/AliceConsole/AliceConsole.csproj -c Release -p:PackageVersion=${{ steps.get_version.outputs.version-without-v }}

- name: Push
run: dotnet nuget push src/AnovSyntax/bin/Release/AliceProject.AnovSyntax.${{ steps.get_version.outputs.version-without-v }}.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_API_KEY }}
run: |
dotnet nuget push src/AnovSyntax/bin/Release/AliceProject.AnovSyntax.${{ steps.get_version.outputs.version-without-v }}.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_API_KEY }}
dotnet nuget push src/AliceConsole/bin/Release/AliceProject.AliceConsole.${{ steps.get_version.outputs.version-without-v }}.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_API_KEY }}
env:
GITHUB_TOKEN: ${{ secrets.NUGET_API_KEY }}
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
dotnet-version: 10.0.x

- uses: actions/checkout@v4
- name: Test
Expand Down
29 changes: 13 additions & 16 deletions docs/AliceConsole.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,33 +11,30 @@ Alice Console is the useful tool to read `.anov` file and create `.anproj` fotma

### Install

#### From Nuget.org

```sh
dotnet tool install --global AliceProject.AliceConsole
```

#### From Source

1. Clone this repository
1. Pack source with .NET CLI
```sh
cd AliceConsole
cd src/AliceConsole
dotnet pack
```
1. Install this solution
```sh
dotnet tool install --global --add-source ./nupkg AliceConsole
dotnet tool install --global --add-source ./nupkg AliceProject.AliceConsole
```

### Uninstall

<!--
1. Check tool placement
```sh
which aliceconsole
# In my case: /home/lemon73/.dotnet/tools/aliceconsole
```
-->
1. Uninstall this tool
```sh
# Linux, macOS
dotnet tool install --tool-path ~/.dotnet/tools --add-source ./nupkg AliceConsole
# Windows
dotnet tool install --tool-path c:\dotnet-tools --add-source ./nupkg AliceConsole
```
```sh
dotnet tool uninstall --global AliceProject.AliceConsole
```

### Usage

Expand Down
30 changes: 30 additions & 0 deletions src/AliceConsole/AliceConsole.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,29 @@
<PackAsTool>true</PackAsTool>
<ToolCommandName>aliceconsole</ToolCommandName>
<PackageOutputPath>./nupkg</PackageOutputPath>

<!-- NuGet -->
<PackageId>AliceProject.AliceConsole</PackageId>
<!-- <Version>0.1.0</Version> -->
<Authors>AliceProject</Authors>
<Company>$(Authors)</Company>
<Copyright>© Alice Project. All rights reserved.</Copyright>
<PackageReadmeFile>AliceConsole.md</PackageReadmeFile>
<IsPackable>True</IsPackable>
<PackageProjectUrl>https://github.com/AliceNovel/AliceConsole</PackageProjectUrl>
<RepositoryUrl>https://github.com/AliceNovel/AliceConsole</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageTags>alicenovel;aliceproject;alicesystem;anov;aliceconsole;</PackageTags>
<IncludeSymbols>True</IncludeSymbols>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<Title>Alice Console</Title>
<Description>The Advanced-Novel Reader.</Description>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance>
<DebugType>portable</DebugType>
<!-- <PackageIcon>icon.png</PackageIcon> -->
</PropertyGroup>

<ItemGroup>
Expand All @@ -19,4 +42,11 @@
<PackageReference Include="System.CommandLine" Version="2.0.1" />
</ItemGroup>

<ItemGroup>
<None Include="../../docs/AliceConsole.md">
<Pack>True</Pack>
<PackagePath>/</PackagePath>
</None>
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion src/AnovSyntax/AnovSyntax.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<PackageProjectUrl>https://github.com/AliceNovel/AliceConsole</PackageProjectUrl>
<RepositoryUrl>https://github.com/AliceNovel/AliceConsole</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageTags>alicenovel;aliceproject;anov;anovsyntax;</PackageTags>
<PackageTags>alicenovel;aliceproject;alicesystem;anov;anovsyntax;</PackageTags>
<IncludeSymbols>True</IncludeSymbols>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
Expand Down
Loading