mirror of
https://github.com/penpot/penpot.git
synced 2025-02-11 09:38:56 -05:00
✨ Fix version logging on exporter.
This commit is contained in:
parent
f7568f6348
commit
8caa289586
2 changed files with 9 additions and 7 deletions
|
@ -2,17 +2,21 @@
|
||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
|
CURRENT_VERSION=$1;
|
||||||
|
|
||||||
yarn install
|
yarn install
|
||||||
rm -rf target
|
rm -rf target
|
||||||
|
|
||||||
export NODE_ENV=production;
|
export NODE_ENV=production;
|
||||||
|
|
||||||
# Build the application
|
# Build the application
|
||||||
clojure -M:dev:shadow-cljs release main
|
clojure -M:dev:shadow-cljs release main;
|
||||||
|
|
||||||
# Remove source
|
# Remove source
|
||||||
rm -rf target/app
|
rm -rf target/app;
|
||||||
|
|
||||||
# Copy package*.json files
|
# Copy package*.json files
|
||||||
cp yarn.lock target/
|
cp yarn.lock target/;
|
||||||
cp package.json target/
|
cp package.json target/;
|
||||||
|
|
||||||
|
sed -i -re "s/\%version\%/$CURRENT_VERSION/g" ./target/app.js;
|
||||||
|
|
|
@ -71,9 +71,7 @@
|
||||||
(atom (prepare-config)))
|
(atom (prepare-config)))
|
||||||
|
|
||||||
(def version
|
(def version
|
||||||
(atom (v/parse (or (some-> (ex/ignoring (fs/readFileSync "version.txt"))
|
(atom (v/parse "%version%")))
|
||||||
(str/trim))
|
|
||||||
"%version%"))))
|
|
||||||
|
|
||||||
(defn get
|
(defn get
|
||||||
"A configuration getter."
|
"A configuration getter."
|
||||||
|
|
Loading…
Add table
Reference in a new issue