0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-11 01:28:30 -05:00

Fix version logging on exporter.

This commit is contained in:
Andrey Antukh 2022-01-20 14:27:03 +01:00
parent f7568f6348
commit 8caa289586
2 changed files with 9 additions and 7 deletions

View file

@ -2,17 +2,21 @@
set -ex
CURRENT_VERSION=$1;
yarn install
rm -rf target
export NODE_ENV=production;
# Build the application
clojure -M:dev:shadow-cljs release main
clojure -M:dev:shadow-cljs release main;
# Remove source
rm -rf target/app
rm -rf target/app;
# Copy package*.json files
cp yarn.lock target/
cp package.json target/
cp yarn.lock target/;
cp package.json target/;
sed -i -re "s/\%version\%/$CURRENT_VERSION/g" ./target/app.js;

View file

@ -71,9 +71,7 @@
(atom (prepare-config)))
(def version
(atom (v/parse (or (some-> (ex/ignoring (fs/readFileSync "version.txt"))
(str/trim))
"%version%"))))
(atom (v/parse "%version%")))
(defn get
"A configuration getter."