mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 09:58:32 +02:00
Merge remote-tracking branch 'origin/stable'
This commit is contained in:
commit
c70a842bc6
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
@ -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();
|
||||||
}
|
}
|
||||||
|
@ -165,6 +165,5 @@ module.exports = {
|
|||||||
createMainWindow,
|
createMainWindow,
|
||||||
createSetupWindow,
|
createSetupWindow,
|
||||||
closeSetupWindow,
|
closeSetupWindow,
|
||||||
createExtraWindow,
|
|
||||||
registerGlobalShortcuts
|
registerGlobalShortcuts
|
||||||
};
|
};
|
@ -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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user