Skip to content

Commit

Permalink
Cleanup (#142)
Browse files Browse the repository at this point in the history
* Useless parentheses

* Remove dummy Electron app

* Code style

* Cleanup

* Improve build output

* Docblock
  • Loading branch information
simonhamp authored Dec 7, 2024
1 parent c1fc491 commit b6f48d3
Show file tree
Hide file tree
Showing 10 changed files with 28 additions and 378 deletions.
25 changes: 15 additions & 10 deletions resources/js/electron-builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,13 @@ try {

if (isBuilding) {

console.log('=====================');
console.log('Building for ' + targetOs);
console.log('=====================');
console.log('updater config', updaterConfig);
console.log('=====================');
console.log();
console.log('===================================================================');
console.log(' Building for ' + targetOs);
console.log('===================================================================');
console.log();
console.log('Updater config', updaterConfig);
console.log();

try {
const appPath = join(__dirname, 'resources', 'app');
Expand Down Expand Up @@ -104,15 +106,18 @@ if (isBuilding) {

removeSync(tmpDir);

console.log('=====================');
console.log();
console.log('Copied app to resources');
console.log(join(process.env.APP_PATH, 'dist'));
console.log('=====================');
console.log();
console.log('===================================================================');
console.log(' Starting build...');
console.log();
} catch (e) {
console.error('=====================');
console.error('Error copying app to resources');
console.error();
console.error('Error copying app into build environment');
console.error(e);
console.error('=====================');
console.error();
}

}
Expand Down
22 changes: 7 additions & 15 deletions resources/js/electron.vite.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {resolve, join} from 'path'
import {defineConfig, externalizeDepsPlugin} from 'electron-vite'
import vue from '@vitejs/plugin-vue'
import { resolve, join } from 'path';
import { defineConfig, externalizeDepsPlugin } from 'electron-vite';
import vue from '@vitejs/plugin-vue';

export default defineConfig({
main: {
Expand All @@ -9,8 +9,8 @@ export default defineConfig({
plugins: [
{
name: 'watch-external',
buildStart(){
this.addWatchFile(join(process.env.APP_PATH, 'app', 'Providers', 'NativeAppServiceProvider.php'))
buildStart() {
this.addWatchFile(join(process.env.APP_PATH, 'app', 'Providers', 'NativeAppServiceProvider.php'));
}
}
]
Expand All @@ -20,13 +20,5 @@ export default defineConfig({
},
preload: {
plugins: [externalizeDepsPlugin()]
},
renderer: {
resolve: {
alias: {
'@renderer': resolve('src/renderer/src')
}
},
plugins: [vue()]
},
})
}
});
17 changes: 0 additions & 17 deletions resources/js/src/renderer/index.html

This file was deleted.

97 changes: 0 additions & 97 deletions resources/js/src/renderer/src/App.vue

This file was deleted.

189 changes: 0 additions & 189 deletions resources/js/src/renderer/src/assets/css/styles.less

This file was deleted.

Loading

0 comments on commit b6f48d3

Please sign in to comment.