DMG background

We are using the background designed by @ParthJadhav with a few modifications by me for sizing.

Co-authored-by: Parth Jadhav <jadhavparth99@gmail.com>
This commit is contained in:
Oscar Beaumont 2023-01-03 16:13:29 +08:00
parent 4569e45e47
commit 58aa3b7a0c
3 changed files with 14 additions and 1 deletions

View file

@ -8,7 +8,7 @@
"vite": "vite",
"dev": "tauri dev",
"tauri": "tauri",
"build": "tauri build",
"build": "node ./src-tauri/build.js",
"dmg": "open ../../target/release/bundle/dmg/"
},
"dependencies": {

View file

@ -0,0 +1,13 @@
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}`);
});

Binary file not shown.

After

Width:  |  Height:  |  Size: 105 KiB