Skip to content

Commit

Permalink
feat(deb): Replace ia32 arch name with i386 in package filename
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Replace ia32 arch name with i386 in package filename

Closes #915
  • Loading branch information
develar committed Nov 19, 2016
1 parent ff7a8c3 commit 73e54c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/platformPackager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,9 @@ export abstract class PlatformPackager<DC extends PlatformSpecificBuildOptions>
c = "amd64"
}
}
else if (arch === Arch.ia32 && ext === "deb") {
c = "i386"
}
else {
c = Arch[arch]
}
Expand Down
2 changes: 1 addition & 1 deletion test/src/helpers/packTester.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ async function checkLinuxResult(outDir: string, packager: Packager, checkOptions
}
}))

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

0 comments on commit 73e54c4

Please sign in to comment.