mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-04-29 02:42:47 -04:00
* Make Prettier and ESLint work together - Resolve conflicts between Prettier and ESLint regarding indentation and Tailwind rules order - Add `.editorconfig` to standardize basic formatting options across tools and editors - Add `.gitattributes` to hide `pnpm-lock.yaml` in `git diff` output - Include EditorConfig in the recommended extensions for VSCode - Replace some instances of `pnpm exec <command>` with `pnpm <command>` - Remove superfluous Tauri config for Linux * Revert Prettier changes (it was working correctly before) - Update ESLint to read Tailwind config from absolute path - Remove redundant Prettier dependency from subprojects - Specify the source folder for the lint script in subprojects * use mobile's tailwind config with eslint * pnpm format + pnpm lint:fix --------- Co-authored-by: Utku Bakir <74243531+utkubakir@users.noreply.github.com>
14 lines
633 B
JavaScript
14 lines
633 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', ['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}`);
|
|
});
|