Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion electronUtils/ipcUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const isPackaged = app.isPackaged;
const documentsFolderPath = path.join(os.homedir(), 'Documents', 'Processing Collaborative Sketches');
const processingJavaPath = isPackaged
? path.join(process.resourcesPath, 'tools', 'processing-java')
: 'processing-java';
: path.join(__dirname, '..', 'tools', 'processing-java');

let processingProcess = null; // To store the reference to the process

Expand Down
19 changes: 10 additions & 9 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const { loadIpcFunctions } = require("./electronUtils/ipcUtils");
const package = require('./package.json');

// Set development mode flag
const isDev = process.env.NODE_ENV === 'development';
const isDev = 'development';

// Initialize window management
const windows = [];
Expand All @@ -24,7 +24,7 @@ let splashWindow = null;
const isMac = process.platform === 'darwin';

// Set up file paths
const documentsFolderPath = path.join(os.homedir(), 'Documents', 'Processing Collaborative Sketches');
const documentsFolderPath = path.join(os.homedir(), 'Documents', 'Processing_Collaborative_Sketches');

// Load user preferences
const userPreferences = loadPreferences();
Expand All @@ -35,16 +35,16 @@ const version = package.version;
* Define menu template for the application
* @type {Electron.MenuItemConstructorOptions[]}
*/

const template = [
{
...(isMac ? [{
label: app.name,
role: 'appMenu',
submenu: [
{ label: 'About ' + app.name, role: 'about' },
{ type: 'separator' },
{ role: 'quit' }
]
},
}] : []),
{
label: 'File',
submenu: [
Expand Down Expand Up @@ -136,12 +136,13 @@ const createWindow = (urlPath = '') => {
* @param {string} urlPath - The URL path to load
*/
const loadWindow = (window, urlPath = '') => {
const windowUrl = isDev ?
`http://localhost:5173#/theme/${userPreferences.theme}/${urlPath}`
:
const windowUrl =
// isDev ?
// `http://localhost:5173#/theme/${userPreferences.theme}/${urlPath}`
// :
`file://${path.join(__dirname, 'build', 'index.html')}#theme/${userPreferences.theme}/${urlPath}`;
window.loadURL(windowUrl);
window.hide();
// window.hide();

window.once('ready-to-show', () => {
if (splashWindow) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"build": "cd react-ui && npm run build",
"dev": "concurrently \"npm run dev:react\" \"npm run dev:electron\"",
"dev:react": "cd react-ui && npm run dev",
"dev:electron": "wait-on tcp:5173 && ELECTRON_START_URL=http://localhost:5173/ NODE_ENV=development electron-forge start",
"dev:electron": "wait-on tcp:5173 && electron-forge start",
"package": "electron-forge package",
"make": "npm run build && electron-forge make",
"make:win": "npm run build && electron-forge make --platform=win32",
Expand Down
Empty file added sketches/sketches.pde
Empty file.
Binary file removed tools/Java/ant-launcher.jar
Binary file not shown.
Binary file removed tools/Java/ant.jar
Binary file not shown.
Binary file removed tools/Java/core.jar
Binary file not shown.
Binary file removed tools/Java/core/library/gluegen-rt.jar
Binary file not shown.
Binary file removed tools/Java/core/library/jogl-all.jar
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed tools/Java/core/library/linux-aarch64/libnewt_drm.so
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed tools/Java/core/library/linux-amd64/libnewt_drm.so
Binary file not shown.
Binary file removed tools/Java/core/library/linux-amd64/libnewt_head.so
Binary file not shown.
Binary file removed tools/Java/core/library/linux-arm/libgluegen_rt.so
Binary file not shown.
Binary file not shown.
Binary file removed tools/Java/core/library/linux-arm/libjogl_mobile.so
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed tools/Java/core/library/linux-arm/libnewt_drm.so
Binary file not shown.
Binary file removed tools/Java/core/library/linux-arm/libnewt_head.so
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed tools/Java/core/library/windows-amd64/fenster.exe
Binary file not shown.
Binary file removed tools/Java/core/library/windows-amd64/gluegen_rt.dll
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed tools/Java/core/library/windows-amd64/newt_head.dll
Binary file not shown.
Binary file removed tools/Java/flatlaf.jar
Binary file not shown.
Binary file removed tools/Java/jna-platform.jar
Binary file not shown.
Binary file removed tools/Java/lib/about-1x.png
Binary file not shown.
Binary file removed tools/Java/lib/about-2x.png
Binary file not shown.
301 changes: 0 additions & 301 deletions tools/Java/lib/defaults.txt

This file was deleted.

Binary file removed tools/Java/lib/fonts/ProcessingSans-Bold.ttf
Binary file not shown.
8 changes: 0 additions & 8 deletions tools/Java/lib/fonts/ProcessingSans-LICENSE.md

This file was deleted.

Binary file removed tools/Java/lib/fonts/ProcessingSans-Regular.ttf
Binary file not shown.
Binary file removed tools/Java/lib/fonts/SourceCodePro-Bold.ttf
Binary file not shown.
Loading