Skip to content
Merged
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ yarn download-binaries
yarn test:e2e
```

The launch sets `RAXMLGUI_E2E=1`. That skips auto-update checks and points the main process at the repo `static/` directory (example files, binaries, and test output). The built page loads that example alignment from the same flag.
The launch sets `RAXMLGUI_E2E=1`. That skips auto-update checks. The unpacked main process reads example files and binaries from the repo `static/` directory and writes test output there. The built page loads that example alignment from the same flag.


## Input formats
Expand Down
4 changes: 0 additions & 4 deletions electron.vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@ function sourceMapUpload( command ) {

export default defineConfig( ( { command } ) => ( {
main: {
// electron-webpack injected this path. The main process still reads the repo's static files through it.
define: {
__static: JSON.stringify( resolve( __dirname, 'static' ) ),
},
plugins: sourceMapUpload( command ),
},
preload: {
Expand Down
1 change: 0 additions & 1 deletion src/__static.d.ts

This file was deleted.

8 changes: 4 additions & 4 deletions src/main/processHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ interface RunProcessHooks {
onStdErr?: ( content: string ) => void;
}

// Packaged: electron-builder's extraResources copies static/ beside the asar. Unpacked: out/main/ sits two levels below the repo root.
export function getStaticDir(): string {
if ( process.env.RAXMLGUI_E2E === '1' ) {
return path.join( __dirname, '..', '..', 'static' );
}
return __static;
return app.isPackaged
? path.join( process.resourcesPath, 'static' )
: path.join( __dirname, '..', '..', 'static' );
}

export const get_space_safe_binary_path = ( bin_path: string ): string => {
Expand Down
Loading