Skip to content

Commit

Permalink
Removed linux 32bit build instructions.
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyanziano committed Apr 2, 2019
1 parent c603cc3 commit 496d320
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 27 deletions.
5 changes: 1 addition & 4 deletions packages/app/main/package.json
Expand Up @@ -259,10 +259,7 @@
"target": [
{
"target": "AppImage",
"arch": [
"x64",
"ia32"
]
"arch": ["x64"]
}
]
},
Expand Down
29 changes: 6 additions & 23 deletions packages/app/main/scripts/linux.js
Expand Up @@ -33,7 +33,7 @@

writeLatestYmlFile().catch(e => console.error(e));

/** Generates latest-linux.yml & latest-linux-ia32.yml */
/** Generates latest-linux.yml */
async function writeLatestYmlFile() {
const common = require('./common');
const packageJson = require('../package.json');
Expand All @@ -43,30 +43,13 @@ async function writeLatestYmlFile() {
const version = process.env.EMU_VERSION || packageJson.version;
const releaseFileNameBase = `BotFramework-Emulator-${version}-linux`;

const thirtyTwoBitReleaseFileName = `${releaseFileNameBase}-i386.AppImage`;
const thirtyTwoBitSha512 = await hashFileAsync(path.normalize(`./dist/${thirtyTwoBitReleaseFileName}`));

const sixtyFourBitReleaseFileName = `${releaseFileNameBase}-x86_64.AppImage`;
const sixtyFourBitSha512 = await hashFileAsync(path.normalize(`./dist/${sixtyFourBitReleaseFileName}`));
const releaseFileName = `${releaseFileNameBase}-x86_64.AppImage`;
const sha512 = await hashFileAsync(path.normalize(`./dist/${releaseFileName}`));

const releaseDate = new Date().toISOString();

performWrite(
thirtyTwoBitReleaseFileName,
'latest-linux-ia32.yml',
thirtyTwoBitSha512,
releaseDate,
version
);

performWrite(
sixtyFourBitReleaseFileName,
'latest-linux.yml',
sixtyFourBitSha512,
releaseDate,
version
);
};
performWrite(releaseFileName, 'latest-linux.yml', sha512, releaseDate, version);
}

function performWrite(releaseFilename, yamlFilename, fileHash, releaseDate, version) {
const fsp = require('fs-extra');
Expand All @@ -78,7 +61,7 @@ function performWrite(releaseFilename, yamlFilename, fileHash, releaseDate, vers
releaseDate,
githubArtifactName: releaseFilename,
path: releaseFilename,
sha512: fileHash
sha512: fileHash,
};
const ymlStr = yaml.safeDump(ymlInfo);
fsp.writeFileSync(path.normalize(`./dist/${yamlFilename}`), ymlStr);
Expand Down

0 comments on commit 496d320

Please sign in to comment.