diff --git a/build/scripts/linux.js b/build/scripts/linux.js deleted file mode 100644 index 1d7866bc3..000000000 --- a/build/scripts/linux.js +++ /dev/null @@ -1,22 +0,0 @@ -const { hashFileAsync, writeYamlMetadataFile } = require('./utils'); -const packageJson = require('../../package.json'); -const platform = process.env['EMU_PLATFORM'] || 'linux'; -const version = process.env['EMU_VERSION'] || packageJson.version; -const releaseFileName = `${packageJson.name}-${version}-${platform}.AppImage`; - -writeLatestYml().catch(e => console.error(`Error while trying to write latest-linux.yml: ${e}`)); - -/** Creates a checksum for the packaged installer and generates latest.yml */ -async function writeLatestYml() { - const sha512 = await hashFileAsync(`./dist/${releaseFileName}`); - const releaseDate = new Date().toISOString(); - - writeYamlMetadataFile( - version, - releaseFileName, - 'latest-linux.yml', - './dist', - sha512, - releaseDate - ); -} diff --git a/build/scripts/windows.js b/build/scripts/windows.js deleted file mode 100644 index 314bc7e16..000000000 --- a/build/scripts/windows.js +++ /dev/null @@ -1,24 +0,0 @@ -const { hashFileAsync, writeYamlMetadataFile } = require('./utils'); -const packageJson = require('../../package.json'); -const platform = process.env['EMU_PLATFORM'] || 'windows'; -const version = process.env['EMU_VERSION'] || packageJson.version; -const releaseFileName = `${packageJson.name}-${version}-${platform}-setup.exe`; - -writeLatestYml().catch(e => console.error(`Error while trying to write latest.yml: ${e}`)); - -/** Creates a checksum for the packaged installer and generates latest.yml */ -async function writeLatestYml() { - const sha512 = await hashFileAsync(`./dist/${releaseFileName}`); - const sha2 = await hashFileAsync(`./dist/${releaseFileName}`, 'sha256', 'hex'); - const releaseDate = new Date().toISOString(); - - writeYamlMetadataFile( - version, - releaseFileName, - 'latest.yml', - './dist', - sha512, - releaseDate, - { sha2 } - ); -} diff --git a/package.json b/package.json index 48be89c47..b920f867b 100644 --- a/package.json +++ b/package.json @@ -122,7 +122,7 @@ }, "linux": { "target": "AppImage", - "artifactName": "${name}-${version}-linux.${ext}", + "artifactName": "${name}-${version}-linux-${arch}.${ext}", "category": "Development" }, "electronVersion": "2.0.9",