Skip to content

Commit

Permalink
ci: Patch package.json main
Browse files Browse the repository at this point in the history
  • Loading branch information
eliandoran committed Jul 21, 2024
1 parent b2f688a commit f07a660
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bin/copy-trilium.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,11 @@ for f in 'package.json' 'package-lock.json' 'README.md' 'LICENSE' 'config-sample
cp "$f" "$DIR"/
done

# Patch package.json main
sed -i 's/.\/dist\/electron.js/electron.js/g' "$DIR/package.json"

script_dir=$(realpath $(dirname $0))
cp -Rv "$script_dir/../build/src" "$DIR"
cp -R "$script_dir/../build/src" "$DIR"
cp "$script_dir/../build/electron.js" "$DIR"

# run in subshell (so we return to original dir)
Expand Down

0 comments on commit f07a660

Please sign in to comment.