[O] Refactor AquaMai.csproj to SDK style (#59)

* SDK style

* Update CI

* remove extra code

* [F] CI build and add CI for PR

* [F] Assembly version info

* [F] Do not generate satellite assembly for locale

---------

Co-authored-by: Clansty <i@gao4.pw>
This commit is contained in:
Menci
2024-10-13 20:25:25 +08:00
committed by GitHub
parent a075de4711
commit e67b68aa20
4 changed files with 28 additions and 129 deletions

View File

@@ -29,14 +29,12 @@ jobs:
min-retry-interval: 1
max-retry-interval: 5
- uses: microsoft/setup-msbuild@v2
- name: Build AquaMai
shell: cmd
run: |
copy /y build-assets\${{ matrix.target }}\* AquaMai\Libs
cd AquaMai
msbuild /t:Restore,Build /p:Configuration=Release /p:DefineConstants="${{ matrix.target }}" /p:RestorePackagesConfig=true
dotnet build -c Release /p:DefineConstants="${{ matrix.target }}"
- uses: actions/upload-artifact@v4
with:
@@ -44,6 +42,7 @@ jobs:
path: AquaMai\Output\AquaMai.dll
- name: Send to Telegram
if: github.event_name != 'pull_request'
run: |
$Uri = "https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendDocument"
$Form = @{