mirror of
https://github.com/spacedriveapp/spacedrive
synced 2024-07-18 14:19:15 +00:00
We are using the background designed by @ParthJadhav with a few modifications by me for sizing. Co-authored-by: Parth Jadhav <jadhavparth99@gmail.com>
14 lines
641 B
JavaScript
14 lines
641 B
JavaScript
const path = require('path');
|
|
const { spawn } = require('child_process');
|
|
|
|
process.env.BACKGROUND_FILE = path.join(__dirname, './dmg-background.png');
|
|
process.env.BACKGROUND_FILE_NAME = path.basename(process.env.BACKGROUND_FILE);
|
|
process.env.BACKGROUND_CLAUSE = `set background picture of opts to file ".background:${process.env.BACKGROUND_FILE_NAME}"`;
|
|
|
|
const child = spawn('pnpm', ['exec', 'tauri', 'build']);
|
|
child.stdout.on('data', (data) => console.log(data.toString()));
|
|
child.stderr.on('data', (data) => console.error(data.toString()));
|
|
child.on('exit', (code) => {
|
|
if (code !== 0) console.log(`Child exited with code ${code}`);
|
|
});
|