Skip to content

Commit 73e54c4

Browse files
committed
feat(deb): Replace ia32 arch name with i386 in package filename
BREAKING CHANGE: Replace ia32 arch name with i386 in package filename Closes #915
1 parent ff7a8c3 commit 73e54c4

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/platformPackager.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,9 @@ export abstract class PlatformPackager<DC extends PlatformSpecificBuildOptions>
448448
c = "amd64"
449449
}
450450
}
451+
else if (arch === Arch.ia32 && ext === "deb") {
452+
c = "i386"
453+
}
451454
else {
452455
c = Arch[arch]
453456
}

test/src/helpers/packTester.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ async function checkLinuxResult(outDir: string, packager: Packager, checkOptions
238238
}
239239
}))
240240

241-
const packageFile = `${outDir}/TestApp_${appInfo.version}_${arch === Arch.ia32 ? "ia32" : (arch === Arch.x64 ? "amd64" : "armv7l")}.deb`
241+
const packageFile = `${outDir}/TestApp_${appInfo.version}_${arch === Arch.ia32 ? "i386" : (arch === Arch.x64 ? "amd64" : "armv7l")}.deb`
242242
expect(await getContents(packageFile)).toEqual(expectedContents)
243243
if (arch === Arch.ia32) {
244244
expect(await getContents(`${outDir}/TestApp_${appInfo.version}_i386.deb`)).toEqual(expectedContents)

0 commit comments

Comments
 (0)