Fix broken paths for electron-builder
This commit is contained in:
parent
e0e9175238
commit
0affd8df7a
5 changed files with 25 additions and 6 deletions
|
@ -4,6 +4,23 @@
|
|||
"directories": {
|
||||
"output": "dist/electron"
|
||||
},
|
||||
"files": [
|
||||
{
|
||||
"from": "dist/electron",
|
||||
"to": "./",
|
||||
"filter": ["!dist/!electron/**/*"]
|
||||
},
|
||||
{
|
||||
"from": "dist/electron/static",
|
||||
"to": "./",
|
||||
"filter": ["!dist/!electron/static/**/*"]
|
||||
},
|
||||
{
|
||||
"from": "dist/electron/ui",
|
||||
"to": "./",
|
||||
"filter": ["!dist/!electron/ui/**/*"]
|
||||
}
|
||||
],
|
||||
"publish": [
|
||||
{
|
||||
"provider": "s3",
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
"name": "LBRY Inc.",
|
||||
"email": "hello@lbry.io"
|
||||
},
|
||||
"main": "./dist/electron/main/main.js",
|
||||
"main": "./dist/electron/main.js",
|
||||
"scripts": {
|
||||
"compile:electron": "webpack --progress --config webpack.electron.config.js",
|
||||
"compile:web": "webpack --progress --config webpack.web.config.js",
|
||||
|
@ -34,7 +34,9 @@
|
|||
"precommit": "lint-staged",
|
||||
"preinstall": "yarn cache clean lbry-redux && yarn cache clean lbryinc",
|
||||
"postinstall": "electron-builder install-app-deps && node build/downloadDaemon.js",
|
||||
"run:electron": "electron ./dist/electron/main/bundle.js"
|
||||
"run:electron": "electron ./dist/electron/main.js",
|
||||
"pack": "electron-builder --dir",
|
||||
"dist": "electron-builder"
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/polyfill": "^7.2.5",
|
||||
|
|
|
@ -10,6 +10,6 @@
|
|||
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
<script type="text/javascript" src="http://localhost:8080/ui/bundle.js"></script>
|
||||
<script type="text/javascript" src="http://localhost:8080/ui.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -10,6 +10,6 @@
|
|||
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
<script type="text/javascript" src="ui/bundle.js"></script>
|
||||
<script type="text/javascript" src="ui.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -13,7 +13,7 @@ const mainConfig = {
|
|||
main: './src/platforms/electron/index.js',
|
||||
},
|
||||
output: {
|
||||
filename: '[name]/bundle.js',
|
||||
filename: '[name].js',
|
||||
path: __dirname + '/dist/electron',
|
||||
},
|
||||
module: {
|
||||
|
@ -67,7 +67,7 @@ const renderConfig = {
|
|||
ui: './src/ui/index.js',
|
||||
},
|
||||
output: {
|
||||
filename: '[name]/bundle.js',
|
||||
filename: '[name].js',
|
||||
path: __dirname + '/dist/electron',
|
||||
},
|
||||
module: {
|
||||
|
|
Loading…
Reference in a new issue