Skip to content

Commit

Permalink
v2.2.0 (Closes #4)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidxuang committed Jan 8, 2023
1 parent 16b055c commit f509a7c
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 15 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,20 @@ jobs:
uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.0.x'
- name: Publish
- name: Publish Avalonia
run: |
dotnet publish MusicDecrypto.Commandline/MusicDecrypto.Commandline.csproj -c Release -o ./generic
dotnet publish MusicDecrypto.Avalonia/MusicDecrypto.Avalonia.csproj -c Release -o ./generic
dotnet publish MusicDecrypto.Avalonia/MusicDecrypto.Avalonia.csproj -c Release -r linux-x64 --sc -p:PublishSingleFile=true -p:PublishTrimmed=true -p:TrimMode=copyused -o ./gui-x64
dotnet publish MusicDecrypto.Avalonia/MusicDecrypto.Avalonia.csproj -c Release -r linux-arm64 --sc -p:PublishSingleFile=true -p:PublishTrimmed=true -p:TrimMode=copyused -o ./gui-arm64
- name: Publish with NativeAOT
- name: Publish CLI
run: |
dotnet publish MusicDecrypto.Commandline/MusicDecrypto.Commandline.csproj -c Release -r linux-x64 -p:CppCompilerAndLinker=clang-9 -o ./cli-x64
dotnet publish MusicDecrypto.Commandline/MusicDecrypto.Commandline.csproj -c Release -r linux-arm64 -p:CppCompilerAndLinker=clang-9 -p:SysRoot=/crossrootfs/arm64 -o ./cli-arm64
- name: Extract tag name
id: tag
if: startsWith(github.ref, 'refs/tags/')
uses: olegtarasov/[email protected].1
uses: olegtarasov/[email protected].2
- name: Pack
if: startsWith(github.ref, 'refs/tags/')
run: |
Expand All @@ -51,7 +51,7 @@ jobs:
sha256sum musicdecrypto-gui-$GIT_TAG_NAME-linux-arm64.tar.xz > musicdecrypto-gui-$GIT_TAG_NAME-linux-arm64.tar.xz.sha256
sha256sum musicdecrypto-cli-$GIT_TAG_NAME-linux-x64.tar.xz > musicdecrypto-cli-$GIT_TAG_NAME-linux-x64.tar.xz.sha256
sha256sum musicdecrypto-cli-$GIT_TAG_NAME-linux-arm64.tar.xz > musicdecrypto-cli-$GIT_TAG_NAME-linux-arm64.tar.xz.sha256
- name: Release
- name: GitHub Release
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v1
with:
Expand All @@ -71,22 +71,18 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.0.x'
- name: Publish
- name: Publish Avalonia
run: |
dotnet publish MusicDecrypto.Avalonia/MusicDecrypto.Avalonia.csproj -c Release -r win-x64 --sc -p:PublishSingleFile=true -p:PublishTrimmed=true -p:TrimMode=copyused -o ./gui-x64
dotnet publish MusicDecrypto.Avalonia/MusicDecrypto.Avalonia.csproj -c Release -r win-arm64 --sc -p:PublishSingleFile=true -p:PublishTrimmed=true -p:TrimMode=copyused -o ./gui-arm64
- name: Publish with NativeAOT
- name: Publish CLI
run: |
dotnet publish MusicDecrypto.Commandline/MusicDecrypto.Commandline.csproj -c Release -r win-x64 -o ./cli-x64
dotnet publish MusicDecrypto.Commandline/MusicDecrypto.Commandline.csproj -c Release -r win-arm64 -o ./cli-arm64
- name: Extract tag name
id: tag
if: startsWith(github.ref, 'refs/tags/')
uses: olegtarasov/[email protected].1
uses: olegtarasov/[email protected].2
- name: Pack
if: startsWith(github.ref, 'refs/tags/')
run: |
Expand All @@ -98,7 +94,7 @@ jobs:
(Get-FileHash musicdecrypto-gui-$env:GIT_TAG_NAME-win-arm64.7z SHA256).Hash + " musicdecrypto-gui-$env:GIT_TAG_NAME-win-arm64.7z" > musicdecrypto-gui-$env:GIT_TAG_NAME-win-arm64.7z.sha256
(Get-FileHash musicdecrypto-cli-$env:GIT_TAG_NAME-win-x64.7z SHA256).Hash + " musicdecrypto-cli-$env:GIT_TAG_NAME-win-x64.7z" > musicdecrypto-cli-$env:GIT_TAG_NAME-win-x64.7z.sha256
(Get-FileHash musicdecrypto-cli-$env:GIT_TAG_NAME-win-arm64.7z SHA256).Hash + " musicdecrypto-cli-$env:GIT_TAG_NAME-win-arm64.7z" > musicdecrypto-cli-$env:GIT_TAG_NAME-win-arm64.7z.sha256
- name: Release
- name: GitHub Release
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion MusicDecrypto.Avalonia/MusicDecrypto.Avalonia.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFramework>net7.0</TargetFramework>
<AssemblyName>musicdecrypto-avalonia</AssemblyName>
<OutputType>WinExe</OutputType>
<VersionPrefix>2.1.2</VersionPrefix>
<VersionPrefix>2.2.0</VersionPrefix>
<Nullable>enable</Nullable>
<BuiltInComInteropSupport>true</BuiltInComInteropSupport>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion MusicDecrypto.Commandline/MusicDecrypto.Commandline.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFramework>net7.0</TargetFramework>
<AssemblyName>musicdecrypto</AssemblyName>
<OutputType>Exe</OutputType>
<Version>2.1.2</Version>
<Version>2.2.0</Version>
<Nullable>enable</Nullable>
</PropertyGroup>

Expand Down
Binary file added MusicDecrypto.Library/Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 27 additions & 1 deletion MusicDecrypto.Library/MusicDecrypto.Library.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,26 @@
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<AssemblyName>libmusicdecrypto</AssemblyName>
<Version>2.1.2</Version>
<Nullable>enable</Nullable>
<PackageId>$(MSBuildProjectName.Replace(" ", "_"))</PackageId>
<Version>2.2.0</Version>
<Description>Music de-obfuscation on .NET</Description>
<Authors>davidxuang</Authors>
<PackageLicenseExpression>LGPL-3.0-or-later</PackageLicenseExpression>
<PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance>
<PackageIcon>Logo.png</PackageIcon>
<PackageReadmeFile>README.md</PackageReadmeFile>
<RepositoryUrl>https://github.com/davidxuang/MusicDecrypto</RepositoryUrl>
</PropertyGroup>

<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<DebugType>None</DebugType>
</PropertyGroup>

<ItemGroup>
<InternalsVisibleTo Include="MusicDecrypto.Library.Tests" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="NativeMemoryArray" Version="1.2.*" />
<PackageReference Include="TagLibSharp" Version="2.3.*" />
Expand All @@ -26,4 +38,18 @@
<EmbeddedResource Include="Vendor\Ximalaya\x3m_map.bin" />
</ItemGroup>

<ItemGroup>
<None Include="..\README.md">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
</ItemGroup>

<ItemGroup>
<None Update="Logo.png">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
</ItemGroup>

</Project>
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# MusicDecrypto

[![Build](https://github.com/davidxuang/MusicDecrypto/actions/workflows/build.yaml/badge.svg)](https://github.com/davidxuang/MusicDecrypto/actions/workflows/build.yaml)
[![NuGet](https://badgen.net/nuget/v/MusicDecrypto.Library)](https://www.nuget.org/packages/MusicDecrypto.Library/)
[![GitHub release](https://img.shields.io/github/release/davidxuang/musicdecrypto.svg)](https://GitHub.com/davidxuang/musicdecrypto/releases/)
[![GitHub license](https://img.shields.io/github/license/davidxuang/musicdecrypto.svg)](https://github.com/davidxuang/musicdecrypto/blob/master/LICENSE)

Expand Down

0 comments on commit f509a7c

Please sign in to comment.