Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function packageInstaller (filesPath, cb) {
console.log('Windows: Creating installer...')
installer.createWindowsInstaller({
appDirectory: filesPath,
authors: config.APP_TEAM,
description: config.APP_NAME,
exe: config.APP_NAME + '.exe',
iconUrl: config.GITHUB_URL_RAW + '/static/' + config.APP_NAME + '.ico',
loadingGif: path.join(config.STATIC_PATH, 'loading.gif'),
name: config.APP_NAME,
noMsi: true,
outputDirectory: DIST_PATH,
productName: config.APP_NAME,
// TODO: Re-enable Windows 64-bit delta updates when we confirm that they
// work correctly in the presence of the "ia32" .nupkg files. I
// (feross) noticed them listed in the 64-bit RELEASES file and
// manually edited them out for the v0.17 release. Shipping only
// full updates for now will work fine, with no ill-effects.
// remoteReleases: config.GITHUB_URL,
it('should return the proper pre-release version in the outPath', async () => {
eidStub.transformVersion = require('electron-installer-debian').transformVersion;
packageJSON.version = '1.2.3-beta.4';
const outPath = await debMaker({ dir, appName, targetArch, forgeConfig, packageJSON });
expect(outPath).to.match(/1\.2\.3~beta\.4/);
});
}
import { productName, version } from '../package.json';
const options = {
bin: 'Yosoro',
version,
productName,
genericName: productName,
categories: ['Utility'],
src: path.resolve(__dirname, '../out', `${productName}-linux-x64`),
dest: path.resolve(__dirname, '../out', `${productName}-linux-x64-deb-${version}`),
arch: 'amd64',
icon: path.resolve(__dirname, '../app/main/resource/app.png'),
homepage: 'https://yosoro.coolecho.net',
};
installer(options)
.then(() => console.info(`Successfully created package at ${options.dest}`))
.catch((err) => {
console.error(err, err.stack);
process.exit(1);
});