refactor: Move windows app icon to new assets folder
This commit is contained in:
1 parent
a784eeecc2
commit
d95ae373ab
3 files changed
+5
-4
No files matched your search
File renamed without changes.
@@ -1,7 +1,7 @@
|
|||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
|
||||||
// Create config for use in electron forge
|
// Create config
|
||||||
const createConfig = () => {
|
const createConfig = () => {
|
||||||
const config = {
|
const config = {
|
||||||
name: 'boundary',
|
name: 'boundary',
|
||||||
@@ -15,9 +15,9 @@ const createConfig = () => {
|
|||||||
return config;
|
return config;
|
||||||
};
|
};
|
||||||
|
|
||||||
// Save config file
|
// Save config to file
|
||||||
const saveConfig = (config, destination) => {
|
const saveConfig = (config, destination) => {
|
||||||
const configPath = `${destination}/config.js`;
|
const configPath = path.join(destination, 'config.js');
|
||||||
const content = `module.exports = ${JSON.stringify(config, null, 2)}`;
|
const content = `module.exports = ${JSON.stringify(config, null, 2)}`;
|
||||||
fs.writeFileSync(configPath, content);
|
fs.writeFileSync(configPath, content);
|
||||||
console.log(`Create: ${configPath}`);
|
console.log(`Create: ${configPath}`);
|
||||||
|
|||||||
@@ -1,11 +1,12 @@
|
|||||||
// Generated during build
|
// Generated during build
|
||||||
const config = require('./config.js');
|
const config = require('./config.js');
|
||||||
|
const { isMac } = require('../src/helpers/platform.js');
|
||||||
|
|
||||||
console.log(`\n[forge-config] Release commit: ${config.releaseCommit}`);
|
console.log(`\n[forge-config] Release commit: ${config.releaseCommit}`);
|
||||||
console.log(`[forge-config] Release version: ${config.releaseVersion}`);
|
console.log(`[forge-config] Release version: ${config.releaseVersion}`);
|
||||||
|
|
||||||
// MacOS signing identity
|
// MacOS signing identity
|
||||||
if (process.env.BOUNDARY_DESKTOP_SIGNING_IDENTITY)
|
if (isMac() && !process.env.BOUNDARY_DESKTOP_SIGNING_IDENTITY)
|
||||||
console.warn(
|
console.warn(
|
||||||
'[forge-config] WARNING: Could not find signing identity. Proceeding without signing.'
|
'[forge-config] WARNING: Could not find signing identity. Proceeding without signing.'
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in new issue
Block a user