Skip to content

Commit

Permalink
fix inclusion of share.js in builds, fixes #2738
Browse files Browse the repository at this point in the history
  • Loading branch information
zadam committed Mar 21, 2022
1 parent 316a2ae commit 0cd690d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/copy-trilium.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,11 @@ find $DIR/node_modules -name demo -exec rm -rf {} \;

find $DIR/libraries -name "*.map" -type f -delete

cp $DIR/src/public/app/share.js $DIR/src/public/app-dist/

rm -rf $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\/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
sed -i -e 's/app\/share.js/app-dist\/share.js/g' $DIR/src/views/share/*.ejs

0 comments on commit 0cd690d

Please sign in to comment.