mirror of
https://gitlab.com/futo-org/fcast.git
synced 2025-06-24 21:25:23 +00:00
Fix local Windows builds
This commit is contained in:
parent
c14fe120ab
commit
86828a546f
1 changed files with 15 additions and 4 deletions
|
@ -17,7 +17,6 @@ module.exports = {
|
||||||
packagerConfig: {
|
packagerConfig: {
|
||||||
asar: true,
|
asar: true,
|
||||||
icon: './assets/icons/app/icon',
|
icon: './assets/icons/app/icon',
|
||||||
// TODO: Windows signing
|
|
||||||
osxSign: {},
|
osxSign: {},
|
||||||
osxNotarize: {
|
osxNotarize: {
|
||||||
appleApiKey: process.env.FCAST_APPLE_API_KEY,
|
appleApiKey: process.env.FCAST_APPLE_API_KEY,
|
||||||
|
@ -81,7 +80,6 @@ module.exports = {
|
||||||
config: {
|
config: {
|
||||||
arch: 'x64',
|
arch: 'x64',
|
||||||
appUserModelId: `org.futo.${APPLICATION_NAME}`,
|
appUserModelId: `org.futo.${APPLICATION_NAME}`,
|
||||||
// TODO: Windows signing
|
|
||||||
icon: './assets/icons/app/icon.ico',
|
icon: './assets/icons/app/icon.ico',
|
||||||
name: APPLICATION_TITLE,
|
name: APPLICATION_TITLE,
|
||||||
programFilesFolderName: APPLICATION_TITLE,
|
programFilesFolderName: APPLICATION_TITLE,
|
||||||
|
@ -109,7 +107,14 @@ module.exports = {
|
||||||
switch (packageResults.platform) {
|
switch (packageResults.platform) {
|
||||||
case "win32": {
|
case "win32": {
|
||||||
const exePath = `./out/${APPLICATION_NAME}-${packageResults.platform}-${packageResults.arch}/${APPLICATION_NAME}.exe`;
|
const exePath = `./out/${APPLICATION_NAME}-${packageResults.platform}-${packageResults.arch}/${APPLICATION_NAME}.exe`;
|
||||||
|
|
||||||
|
if (fs.existsSync(CI_SIGNING_DIR)) {
|
||||||
console.log(cp.execSync(path.join(CI_SIGNING_DIR, `sign.sh ${exePath}`)));
|
console.log(cp.execSync(path.join(CI_SIGNING_DIR, `sign.sh ${exePath}`)));
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
console.warn('Windows signing script not found, skipping...');
|
||||||
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case "darwin": {
|
case "darwin": {
|
||||||
|
@ -138,8 +143,14 @@ module.exports = {
|
||||||
if (fs.existsSync(`./out/make/wix/${e.arch}/${artifactName}`)) {
|
if (fs.existsSync(`./out/make/wix/${e.arch}/${artifactName}`)) {
|
||||||
const artifactPath = path.join(`./out/make/wix/${e.arch}`, generateArtifactName(e.packageJSON, e.platform, e.arch, 'msi'));
|
const artifactPath = path.join(`./out/make/wix/${e.arch}`, generateArtifactName(e.packageJSON, e.platform, e.arch, 'msi'));
|
||||||
fs.renameSync(`./out/make/wix/${e.arch}/${artifactName}`, artifactPath);
|
fs.renameSync(`./out/make/wix/${e.arch}/${artifactName}`, artifactPath);
|
||||||
|
|
||||||
|
if (fs.existsSync(CI_SIGNING_DIR)) {
|
||||||
console.log(cp.execSync(path.join(CI_SIGNING_DIR, `sign.sh ${artifactPath}`)));
|
console.log(cp.execSync(path.join(CI_SIGNING_DIR, `sign.sh ${artifactPath}`)));
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
console.warn('Windows signing script not found, skipping...');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue