Skip to content

Commit 853a004

Browse files
m_igashim_igashi
authored andcommitted
fix: use static CRT linking for Windows builds
This removes the VCRuntime140.dll dependency from Windows binaries, making them fully standalone without requiring VCRedist installation. This should resolve the winget installation validation error.
1 parent c628390 commit 853a004

File tree

5 files changed

+24
-22
lines changed

5 files changed

+24
-22
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ jobs:
3636

3737
- name: Build
3838
run: cargo build --release --features replaygain --target ${{ matrix.target }}
39+
env:
40+
RUSTFLAGS: ${{ contains(matrix.target, 'windows') && '-C target-feature=+crt-static' || '' }}
3941

4042
- name: Upload artifact (Unix)
4143
if: runner.os != 'Windows'

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "mp3rgain"
3-
version = "1.1.0"
3+
version = "1.1.1"
44
edition = "2021"
55
authors = ["Masanari Higashi <M-Igashi@users.noreply.github.com>"]
66
description = "Lossless MP3 volume adjustment - a modern mp3gain replacement written in Rust"
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
# yaml-language-server: $schema=https://aka.ms/winget-manifest.installer.1.12.0.schema.json
22

33
PackageIdentifier: M-Igashi.mp3rgain
4-
PackageVersion: 1.1.0
4+
PackageVersion: 1.1.1
55
InstallerLocale: en-US
66
InstallerType: zip
77
NestedInstallerType: portable
88
NestedInstallerFiles:
9-
- RelativeFilePath: mp3rgain.exe
10-
ReleaseDate: 2025-01-09
9+
- RelativeFilePath: mp3rgain.exe
10+
ReleaseDate: 2026-01-13
1111
Installers:
12-
- Architecture: x64
13-
InstallerUrl: https://github.com/M-Igashi/mp3rgain/releases/download/v1.1.0/mp3rgain-v1.1.0-windows-x86_64.zip
14-
InstallerSha256: 50018229ACEF9EA9FD388B46EDEEF94D3F9D7889F2A021167DC241810C235D1E
15-
- Architecture: arm64
16-
InstallerUrl: https://github.com/M-Igashi/mp3rgain/releases/download/v1.1.0/mp3rgain-v1.1.0-windows-arm64.zip
17-
InstallerSha256: D56C1A27BDF4CF376014F33EC4ED7082282FACF1D0C52706DBD3A8527CB3AB00
12+
- Architecture: x64
13+
InstallerUrl: https://github.com/M-Igashi/mp3rgain/releases/download/v1.1.1/mp3rgain-v1.1.1-windows-x86_64.zip
14+
InstallerSha256: 50018229ACEF9EA9FD388B46EDEEF94D3F9D7889F2A021167DC241810C235D1E
15+
- Architecture: arm64
16+
InstallerUrl: https://github.com/M-Igashi/mp3rgain/releases/download/v1.1.1/mp3rgain-v1.1.1-windows-arm64.zip
17+
InstallerSha256: D56C1A27BDF4CF376014F33EC4ED7082282FACF1D0C52706DBD3A8527CB3AB00
1818
ManifestType: installer
1919
ManifestVersion: 1.12.0
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# yaml-language-server: $schema=https://aka.ms/winget-manifest.defaultLocale.1.12.0.schema.json
22

33
PackageIdentifier: M-Igashi.mp3rgain
4-
PackageVersion: 1.1.0
4+
PackageVersion: 1.1.1
55
PackageLocale: en-US
66
Publisher: Masanari Higashi
77
PublisherUrl: https://github.com/M-Igashi
@@ -17,15 +17,15 @@ Description: |-
1717
Features include ReplayGain analysis, AAC/M4A support, and full mp3gain command-line compatibility.
1818
Moniker: mp3rgain
1919
Tags:
20-
- audio
21-
- cli
22-
- gain
23-
- lossless
24-
- mp3
25-
- music
26-
- replaygain
27-
- rust
28-
- volume
29-
ReleaseNotesUrl: https://github.com/M-Igashi/mp3rgain/releases/tag/v1.1.0
20+
- audio
21+
- cli
22+
- gain
23+
- lossless
24+
- mp3
25+
- music
26+
- replaygain
27+
- rust
28+
- volume
29+
ReleaseNotesUrl: https://github.com/M-Igashi/mp3rgain/releases/tag/v1.1.1
3030
ManifestType: defaultLocale
3131
ManifestVersion: 1.12.0
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# yaml-language-server: $schema=https://aka.ms/winget-manifest.version.1.12.0.schema.json
22

33
PackageIdentifier: M-Igashi.mp3rgain
4-
PackageVersion: 1.1.0
4+
PackageVersion: 1.1.1
55
DefaultLocale: en-US
66
ManifestType: version
77
ManifestVersion: 1.12.0

0 commit comments

Comments
 (0)