fix: rename Windows ZIPs and fix macOS manual update checks (#81)

This commit is contained in:
2026-05-24 23:47:02 -07:00
committed by GitHub
parent 10463e7348
commit 17d97f0b7e
11 changed files with 133 additions and 8 deletions
+22
View File
@@ -18,15 +18,28 @@ const packageJson = JSON.parse(readFileSync(packageJsonPath, 'utf8')) as {
afterPack?: string;
electronUpdaterCompatibility?: string;
files?: string[];
artifactName?: string;
dmg?: {
artifactName?: string;
};
extraResources?: Array<{
from?: string;
to?: string;
}>;
mac?: {
artifactName?: string;
};
nsis?: {
artifactName?: string;
};
publish?: Array<{
provider?: string;
owner?: string;
repo?: string;
}>;
win?: {
artifactName?: string;
};
};
};
@@ -199,6 +212,15 @@ test('windows release workflow publishes unsigned artifacts directly without Sig
assert.ok(!releaseWorkflow.includes('SIGNPATH_'));
});
test('release artifact names are distinct before upload', () => {
assert.equal(packageJson.build?.mac?.artifactName, 'SubMiner-${version}-mac.${ext}');
assert.equal(packageJson.build?.dmg?.artifactName, 'SubMiner-${version}.${ext}');
assert.equal(packageJson.build?.win?.artifactName, 'SubMiner-${version}-win.${ext}');
assert.equal(packageJson.build?.nsis?.artifactName, 'SubMiner-${version}.${ext}');
assert.doesNotMatch(releaseWorkflow, /Rename Windows ZIP artifacts/);
assert.doesNotMatch(releaseWorkflow, /Rename-Item[\s\S]*-win\.zip/);
});
test('release workflow publishes subminer-bin to AUR from tagged release artifacts', () => {
assert.match(releaseWorkflow, /aur-publish:/);
assert.match(releaseWorkflow, /needs:\s*\[release\]/);