Merge remote-tracking branch 'origin/stable'

This commit is contained in:
zadam 2020-05-08 23:44:51 +02:00
commit c70a842bc6
6 changed files with 6 additions and 7 deletions

View File

@ -1,4 +1,4 @@
FROM node:12.16.2-alpine FROM node:12.16.3-alpine
# Create app directory # Create app directory
WORKDIR /usr/src/app WORKDIR /usr/src/app

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
PKG_DIR=dist/trilium-linux-x64-server PKG_DIR=dist/trilium-linux-x64-server
NODE_VERSION=12.16.2 NODE_VERSION=12.16.3
if [ "$1" != "DONTCOPY" ] if [ "$1" != "DONTCOPY" ]
then then

View File

@ -34,4 +34,5 @@ find $DIR/libraries -name "*.map" -type f -delete
rm -r $DIR/src/public/app rm -r $DIR/src/public/app
sed -i -e 's/app\/desktop.js/app-dist\/desktop.js/g' $DIR/src/views/desktop.ejs sed -i -e 's/app\/desktop.js/app-dist\/desktop.js/g' $DIR/src/views/desktop.ejs
sed -i -e 's/app\/mobile.js/app-dist\/mobile.js/g' $DIR/src/views/mobile.ejs sed -i -e 's/app\/mobile.js/app-dist\/mobile.js/g' $DIR/src/views/mobile.ejs
sed -i -e 's/app\/setup.js/app-dist\/setup.js/g' $DIR/src/views/setup.ejs

View File

@ -6,9 +6,8 @@ const utils = require('../services/utils');
async function setupPage(req, res) { async function setupPage(req, res) {
if (await sqlInit.isDbInitialized()) { if (await sqlInit.isDbInitialized()) {
const windowService = require('../services/window');
if (utils.isElectron()) { if (utils.isElectron()) {
const windowService = require('../services/window');
await windowService.createMainWindow(); await windowService.createMainWindow();
windowService.closeSetupWindow(); windowService.closeSetupWindow();
} }

View File

@ -165,6 +165,5 @@ module.exports = {
createMainWindow, createMainWindow,
createSetupWindow, createSetupWindow,
closeSetupWindow, closeSetupWindow,
createExtraWindow,
registerGlobalShortcuts registerGlobalShortcuts
}; };

View File

@ -210,7 +210,7 @@
<script src="libraries/knockout.min.js"></script> <script src="libraries/knockout.min.js"></script>
<script src="app-dist/setup.js" crossorigin type="module"></script> <script src="app/setup.js" crossorigin type="module"></script>
<link href="stylesheets/themes.css" rel="stylesheet"> <link href="stylesheets/themes.css" rel="stylesheet">
</body> </body>
</html> </html>