Skip to content

Commit 5b0276f

Browse files
authored
Merge pull request #6407 from jandubois/prepare-for-1.12.3
Prepare for 1.12.3
2 parents 07d2c03 + 8604c48 commit 5b0276f

7 files changed

Lines changed: 40 additions & 19 deletions

File tree

.github/actions/spelling/expect.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ bindir
6868
binfmt
6969
bitnami
7070
blkio
71+
blockmap
7172
bootfs
7273
bosco
7374
bottlesofbeeronthewall

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "rancher-desktop",
33
"productName": "Rancher Desktop",
44
"license": "Apache-2.0",
5-
"version": "1.12.2",
5+
"version": "1.12.3",
66
"author": {
77
"name": "SUSE",
88
"email": "containers@suse.com"

pkg/rancher-desktop/assets/dependencies.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
lima: 0.19.0.rd5
22
limaAndQemu: 1.31.2
33
alpineLimaISO:
4-
isoVersion: 0.2.31.rd11
4+
isoVersion: 0.2.31.rd12
55
alpineVersion: 3.18.0
6-
WSLDistro: "0.51"
6+
WSLDistro: 0.51.1
77
kuberlr: 0.4.4
88
helm: 3.13.3
99
dockerCLI: 24.0.7

scripts/lib/sign-macos.ts

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ type SigningConfig = {
3131
remove: string[];
3232
};
3333

34-
export async function sign(workDir: string): Promise<string> {
34+
export async function sign(workDir: string): Promise<string[]> {
3535
const certFingerprint = process.env.CSC_FINGERPRINT ?? '';
3636
const appleId = process.env.APPLEID;
3737
const appleIdPassword = process.env.AC_PASSWORD;
@@ -125,28 +125,42 @@ export async function sign(workDir: string): Promise<string> {
125125
throw new Error(message.join('\n'));
126126
}
127127

128-
console.log('Building disk image...');
128+
console.log('Building disk image and update archive...');
129129
const arch = process.env.M1 ? Arch.arm64 : Arch.x64;
130130
const productFileName = config.productName?.replace(/\s+/g, '.');
131131
const productArch = process.env.M1 ? 'aarch64' : 'x86_64';
132-
const artifactName = `${ productFileName }-\${version}.${ productArch }.\${ext}`;
132+
const artifactName = `${ productFileName }-\${version}-mac.${ productArch }.\${ext}`;
133+
const formats = ['dmg', 'zip'];
133134

134135
// Build the dmg, explicitly _not_ using an identity; we just signed
135136
// everything as we wanted already.
136137
const results = await build({
137-
targets: new Map([[Platform.MAC, new Map([[arch, ['dmg']]])]]),
138+
targets: new Map([[Platform.MAC, new Map([[arch, formats]])]]),
138139
config: _.merge<Configuration, Configuration>(config, { mac: { artifactName, identity: null } }),
139140
prepackaged: appDir,
140141
});
141142

142-
const dmgFile = results.find(v => v.endsWith('.dmg'));
143+
// The .dmg and the .zip have slightly different file names, so we need to
144+
// deal with them separately.
145+
146+
const dmgFile = results.find(f => f.endsWith('.dmg'));
147+
const zipFile = results.find(f => f.endsWith('.zip'));
143148

144149
if (!dmgFile) {
145-
throw new Error(`Could not find signed disk image`);
150+
throw new Error(`Could not find build disk image`);
151+
}
152+
if (!zipFile) {
153+
throw new Error(`Could not find build zip file`);
146154
}
147-
await spawnFile('codesign', ['--sign', certFingerprint, '--timestamp', dmgFile], { stdio: 'inherit' });
148155

149-
return dmgFile;
156+
const dmgRenamedFile = dmgFile.replace('-mac.', '.');
157+
158+
await fs.promises.rename(dmgFile, dmgRenamedFile);
159+
await Promise.all([dmgRenamedFile, zipFile].map((f) => {
160+
return spawnFile('codesign', ['--sign', certFingerprint, '--timestamp', f], { stdio: 'inherit' });
161+
}));
162+
163+
return Object.values([dmgRenamedFile, zipFile]);
150164
}
151165

152166
/**

scripts/lib/sign-win32.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ interface ElectronBuilderConfiguration {
4444
}
4545
}
4646

47-
export async function sign(workDir: string): Promise<string> {
47+
export async function sign(workDir: string): Promise<string[]> {
4848
const certFingerprint = process.env.CSC_FINGERPRINT ?? '';
4949
const certPassword = process.env.CSC_KEY_PASSWORD ?? '';
5050

@@ -98,7 +98,7 @@ export async function sign(workDir: string): Promise<string> {
9898

9999
await signFn(...filesToSign);
100100

101-
return await buildWiX(workDir, unpackedDir, signFn);
101+
return [await buildWiX(workDir, unpackedDir, signFn)];
102102
}
103103

104104
/**

scripts/sign.ts

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ async function signArchive(archive: string): Promise<void> {
2121
await fs.promises.mkdir(distDir, { recursive: true });
2222
const workDir = await fs.promises.mkdtemp(path.join(distDir, 'sign-'));
2323
const archiveDir = path.join(workDir, 'unpacked');
24-
let artifact: string | undefined;
24+
let artifacts: string[] | undefined;
2525

2626
try {
2727
// Extract the archive
@@ -32,20 +32,23 @@ async function signArchive(archive: string): Promise<void> {
3232
// Detect the archive type
3333
for (const file of await fs.promises.readdir(archiveDir)) {
3434
if (file.endsWith('.exe')) {
35-
artifact = await windows.sign(workDir);
35+
artifacts = await windows.sign(workDir);
3636
break;
3737
}
3838
if (file.endsWith('.app')) {
39-
artifact = await macos.sign(workDir);
39+
artifacts = await macos.sign(workDir);
4040
break;
4141
}
4242
}
4343

44-
if (!artifact) {
44+
if (!artifacts) {
4545
throw new Error(`Could not find any files to sign in ${ archive }`);
4646
}
47-
await computeChecksum(artifact);
48-
console.log(`Signed result: ${ artifact }`);
47+
await Promise.all(artifacts.map(f => computeChecksum(f)));
48+
49+
for (const line of ['Signed results:', ...artifacts.map(f => ` - ${ f }`)]) {
50+
console.log(line);
51+
}
4952
} finally {
5053
await fs.promises.rm(workDir, { recursive: true, maxRetries: 3 });
5154
}

src/go/nerdctl-stub/nerdctl_commands_generated.go

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)