Repository navigation
fix(ci): ソリューション全体復元を回避 (TestRunner破損参照のため個別ビルド) #7
Workflow file for this run
This file contains hidden or 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
| name: Build & Release | |
| on: | |
| push: | |
| tags: | |
| - 'v*.*.*' | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup .NET 8 | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: '8.0.x' | |
| - name: Build Plugin (net48) | |
| run: dotnet build src/Plugin/KK_CardCompression.csproj -c Release | |
| - name: Publish Desktop App (single-file) | |
| run: | | |
| dotnet publish src/App/KK_CardCompression.csproj -c Release ` | |
| --self-contained false ` | |
| -p:PublishSingleFile=true ` | |
| -p:IncludeNativeLibrariesForSelfExtract=true ` | |
| -o publish-desktop/ | |
| - name: Get version from tag | |
| id: version | |
| shell: bash | |
| env: | |
| REF_NAME: ${{ github.ref_name }} | |
| run: echo "version=${REF_NAME#v}" >> "$GITHUB_OUTPUT" | |
| - name: Create GitHub Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| name: "KK Card Compression ${{ github.ref_name }}" | |
| body: | | |
| ## KK Card Compression ${{ github.ref_name }} | |
| Koikatsu カード・シーン PNG ファイルの LZMA ロスレス圧縮/解凍ツール | |
| ### ダウンロード | |
| | ファイル | 説明 | 前提 | | |
| |----------|------|------| | |
| | `KK_CardCompression.exe` | デスクトップ バッチツール | .NET 8 Desktop Runtime | | |
| | `KK_CardCompression.dll` | BepInEx プラグイン(自動圧縮/解凍) | BepInEx 5.4.x | | |
| ### 変更履歴 | |
| - プラグイン: KK_SaveLoadCompression → KK_CardCompression にリネーム(作者: raurau) | |
| - 単一 DLL 配布(SevenZip.dll 不要) | |
| - 圧縮レベルを固定化(速度優先) | |
| - ディレクトリ構造の整理 | |
| - デッドコード除去・リファクタリング | |
| ### 導入手順 | |
| **プラグイン**: | |
| 1. `KK_CardCompression.dll` を `BepInEx\plugins\KK_CardCompression\` に配置 | |
| 2. 旧 `jim60105\KK_SaveLoadCompression.dll` と `raurau\SevenZip.dll` を削除 | |
| 3. F1 → Plugin Settings → KK Card Compression → Enable = ON | |
| **デスクトップアプリ**: | |
| 1. [.NET 8 Desktop Runtime](https://dotnet.microsoft.com/download/dotnet/8.0) をインストール | |
| 2. `KK_CardCompression.exe` を実行 | |
| 3. PNG ファイルをドロップ → 圧縮/解凍 | |
| files: | | |
| publish-desktop/KK_CardCompression.exe | |
| src/Plugin/bin/Release/KK_CardCompression.dll | |
| draft: false | |
| prerelease: false |