Skip to content

Commit

Permalink
fix webpack buidl
Browse files Browse the repository at this point in the history
  • Loading branch information
zadam committed Apr 15, 2020
1 parent f97c9e3 commit 48e19d0
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion bin/build-linux-x64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ echo "Copying required linux-x64 binaries"
rm -r $SRC_DIR/node_modules/sqlite3/lib/binding/*
rm -r $SRC_DIR/node_modules/pngquant-bin/vendor/*

rm -r $SRC_DIR/src/public/dist/*.mobile.*
rm -r $SRC_DIR/src/public/app-dist/*.mobile.*

cp -r bin/deps/linux-x64/sqlite/* $SRC_DIR/node_modules/sqlite3/lib/binding/
cp bin/deps/linux-x64/image/pngquant $SRC_DIR/node_modules/pngquant-bin/vendor/
Expand Down
2 changes: 1 addition & 1 deletion bin/build-mac-x64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ cp bin/deps/mac-x64/image/cjpeg $SRC_DIR/node_modules/mozjpeg/vendor/
cp bin/deps/mac-x64/image/pngquant $SRC_DIR/node_modules/pngquant-bin/vendor/
cp bin/deps/mac-x64/image/gifsicle $SRC_DIR/node_modules/giflossy/vendor/

rm -r $SRC_DIR/src/public/dist/*.mobile.*
rm -r $SRC_DIR/src/public/app-dist/*.mobile.*

./node_modules/.bin/electron-packager $SRC_DIR --asar --out=dist --executable-name=trilium --platform=darwin --arch=x64 --overwrite --icon=images/app-icons/mac/icon.icns

Expand Down
2 changes: 1 addition & 1 deletion bin/build-win-x64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ cp bin/deps/win-x64/image/cjpeg.exe $SRC_DIR/node_modules/mozjpeg/vendor/
cp bin/deps/win-x64/image/pngquant.exe $SRC_DIR/node_modules/pngquant-bin/vendor/
cp bin/deps/win-x64/image/gifsicle.exe $SRC_DIR/node_modules/giflossy/vendor/

rm -r $SRC_DIR/src/public/dist/*.mobile.*
rm -r $SRC_DIR/src/public/app-dist/*.mobile.*

./node_modules/.bin/electron-packager $SRC_DIR --asar --out=dist --executable-name=trilium --platform=win32 --arch=x64 --overwrite --icon=images/app-icons/win/icon.ico

Expand Down
2 changes: 1 addition & 1 deletion issue_template.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
For bug reports, please mention **version of the application** and include **log files** from following location:
For bug reports, **PLEASE mention version of Trilium you're using** and also include **log files** from following location:

* `/home/[user]/.local/share/trilium-data/log` for Linux
* `C:\Users\[user]\AppData\Roaming\trilium-data\log` for Windows Vista and up
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"webpack": "npx webpack -c webpack-desktop.config.js && npx webpack -c webpack-mobile.config.js && npx webpack -c webpack-setup.config.js"
},
"dependencies": {
"async-mutex": "0.2.1",
"async-mutex": "0.2.2",
"axios": "0.19.2",
"body-parser": "1.19.0",
"cls-hooked": "4.2.2",
Expand Down
2 changes: 1 addition & 1 deletion webpack-desktop.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = {
mobile: './src/public/app/desktop.js',
},
output: {
publicPath: 'dist/',
publicPath: 'app-dist/',
path: path.resolve(__dirname, 'src/public/app-dist'),
filename: 'desktop.js'
},
Expand Down
2 changes: 1 addition & 1 deletion webpack-mobile.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = {
mobile: './src/public/app/mobile.js',
},
output: {
publicPath: '/dist/',
publicPath: 'app-dist/',
path: path.resolve(__dirname, 'src/public/app-dist'),
filename: 'mobile.js'
},
Expand Down
2 changes: 1 addition & 1 deletion webpack-setup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = {
mobile: './src/public/app/setup.js',
},
output: {
publicPath: '/dist/',
publicPath: 'app-dist/',
path: path.resolve(__dirname, 'src/public/app-dist'),
filename: 'setup.js'
},
Expand Down

0 comments on commit 48e19d0

Please sign in to comment.