File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 6262 run : |
6363 sed -i 's/src="\/_expo/src="_expo/g' dist/index.html
6464 sed -i 's/href="\/_expo/href="_expo/g' dist/index.html
65- find dist -type f -name '*.js' -exec sed -i 's|/_expo/static/js/web/|./ _expo/static/js/web/|g' {} +
65+ find dist -type f -name '*.js' -exec sed -i 's|" /_expo/static/js/web/|window.electron.basePath + " _expo/static/js/web/|g' {} +
6666
6767 - name : Archive production artifacts
6868 uses : actions/upload-artifact@v3
Original file line number Diff line number Diff line change 1+ import path from 'path' ;
2+
13import { contextBridge , ipcRenderer , IpcRendererEvent } from 'electron' ;
24
5+ /**
6+ * Expose the basePath to the renderer process.
7+ */
8+ contextBridge . exposeInMainWorld ( 'electron' , {
9+ basePath : `file://${ path . join ( process . resourcesPath , 'dist' ) } /` ,
10+ } ) ;
11+
312// White-listed channels.
413const ipc = {
514 render : {
You can’t perform that action at this time.
0 commit comments