Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
f15fac6
Initial plan
Copilot Apr 5, 2026
63914d3
WiX拡張機能のバージョン互換性問題を修正してインストーラービルドを修正する
Copilot Apr 5, 2026
2913b71
WiX拡張を .wixproj の PackageReference で管理する方式に変更
Copilot Apr 5, 2026
b4632fa
dotnet run に --project を明示指定し複数プロジェクトファイルの競合を解消
Copilot Apr 5, 2026
d4464d4
fix: VdLabel.Wix.csproj を net472 から net8.0-windows に変更し System.Window…
Copilot Apr 5, 2026
c3ce1a6
fix: TargetFramework を net8.0 に変更し Compiler.BuildWxs の引数を修正
Copilot Apr 5, 2026
3441c53
いったんインストーラー作るようにしてみてる
Freeesia Apr 5, 2026
d9516e1
ライセンスもいったん有効にする
Freeesia Apr 5, 2026
eb33251
fix: InternalsVisibleTo("VdLabel.Wix.aot") を追加して WixSharp の AOT ハンドラー…
Copilot Apr 5, 2026
6fc723f
fix: TargetFramework を net8.0-windows に戻す(System.Drawing.Common が必要)
Copilot Apr 5, 2026
adf6026
fix: System.Drawing.Common を明示的に参照追加(.NET 8 では自動的に含まれない)
Copilot Apr 5, 2026
a2bde8a
いったんそれっぽくなる
Freeesia Apr 9, 2026
41f8cc9
fix: WixToolset を 7.0.0 にアップグレードし、WXS ファイルの出力先を generated/ フォルダに設定
Freeesia Apr 11, 2026
a063c22
fix: .wixpdb の出力を抑制する設定を追加
Freeesia Apr 11, 2026
dcc5fa8
コメントアウト戻す
Freeesia Apr 11, 2026
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 .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"isRoot": true,
"tools": {
"wix": {
"version": "6.0.2",
"version": "7.0.0",
"commands": [
"wix"
],
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/dotnet-desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
- uses: actions/cache@v5
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }} #hash of project files
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj', '**/*.wixproj') }} #hash of project files
restore-keys: |
${{ runner.os }}-nuget-
- uses: actions/setup-dotnet@v5
Expand Down Expand Up @@ -123,7 +123,7 @@ jobs:
- uses: actions/cache@v5
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }} #hash of project files
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj', '**/*.wixproj') }} #hash of project files
restore-keys: |
${{ runner.os }}-nuget-
- uses: actions/setup-dotnet@v5
Expand All @@ -140,7 +140,8 @@ jobs:
name: licenses
- run: |
dotnet tool restore
dotnet run -c Release
dotnet run --project VdLabel.Wix.csproj -c Release
dotnet build VdLabel.Installer.wixproj -p:OutputName=VdLabel-${{ needs.build.outputs.version }}
working-directory: VdLabel.Wix
- uses: actions/upload-artifact@v7
with:
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ project.lock.json
project.fragment.lock.json
artifacts/

# WixSharp の自動生成 WXS ファイル
VdLabel.Wix/generated/

# ASP.NET Scaffolding
ScaffoldingReadMe.txt

Expand Down
11 changes: 5 additions & 6 deletions VdLabel.Wix/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
const string Manufacturer = "StudioFreesia";
const string App = "VdLabel";
const string ArtifactsDir = @"..\artifacts";
const string PublishDir = @"..\publish";
const string Executable = $"{App}.exe";

var exePath = Path.Combine(Environment.CurrentDirectory, ArtifactsDir, Executable);
Expand All @@ -24,7 +23,6 @@
project.RebootSupressing = RebootSupressing.Suppress;
project.GUID = new("FE947636-81DB-4819-A5D9-939125903F4C");
project.Platform = Platform.x64;
project.Language = "ja-JP";
project.Version = new(version);

// コントロールパネルの情報を設定
Expand All @@ -36,9 +34,7 @@
UrlUpdateInfo = "https://github.com/Freeesia/VdLabel/releases",
};

// どっちか片方しか設定できない
//project.MajorUpgrade = MajorUpgrade.Default;
project.MajorUpgradeStrategy = MajorUpgradeStrategy.Default;
project.MajorUpgrade = MajorUpgrade.Default;

project.BackgroundImage = @"..\assets\installer_back.png";
project.ValidateBackgroundImage = false;
Expand All @@ -60,4 +56,7 @@
}
};

project.BuildMsi(Path.Combine(PublishDir, $"{App}-{version}.msi"));
// WXS ファイルを generated/ フォルダに生成する(MSI のビルドは VdLabel.Installer.wixproj で行う)
// generated/ は .gitignore で除外されているため、生成物がリポジトリに混入しない
project.OutDir = "generated";
Compiler.BuildWxs(project);
24 changes: 24 additions & 0 deletions VdLabel.Wix/VdLabel.Installer.wixproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<Project Sdk="WixToolset.Sdk/7.0.0">

<PropertyGroup>
<OutputPath>$(MSBuildProjectDirectory)\..\publish\</OutputPath>
<AcceptEula>wix7</AcceptEula>
<InstallerPlatform>x64</InstallerPlatform>
<!-- UI の表示言語を日本語に設定 -->
<Cultures>ja-JP</Cultures>
<!-- .wixpdb を出力しない -->
<SuppressPdbOutput>true</SuppressPdbOutput>
</PropertyGroup>

<ItemGroup>
<!-- WixSharp が generated/ フォルダに出力した WXS のみをコンパイル対象にする -->
<Compile Remove="**\*.wxs" />
<Compile Include="generated\*.wxs" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="WixToolset.Util.wixext" Version="7.0.0" />
<PackageReference Include="WixToolset.UI.wixext" Version="7.0.0" />
</ItemGroup>

</Project>
6 changes: 3 additions & 3 deletions VdLabel.Wix/VdLabel.Wix.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<RootNamespace>VdLavel.Wix</RootNamespace>
<TargetFramework>net472</TargetFramework>
<RootNamespace>VdLabel.Wix</RootNamespace>
<TargetFramework>net48</TargetFramework>
<LangVersion>latest</LangVersion>
</PropertyGroup>

Expand All @@ -14,7 +14,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="WixSharp_wix4" Version="2.12.3" />
<PackageReference Include="WixSharp_wix4.bin" Version="2.12.3" />
</ItemGroup>

<ItemGroup>
Expand Down