mirror of
https://github.com/spacedriveapp/spacedrive
synced 2024-07-08 08:22:53 +00:00
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:
parent
4569e45e47
commit
58aa3b7a0c
|
@ -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": {
|
||||
|
|
13
apps/desktop/src-tauri/build.js
Normal file
13
apps/desktop/src-tauri/build.js
Normal 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}`);
|
||||
});
|
BIN
apps/desktop/src-tauri/dmg-background.png
Normal file
BIN
apps/desktop/src-tauri/dmg-background.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 105 KiB |
Loading…
Reference in a new issue