mirror of
https://github.com/penpot/penpot.git
synced 2025-06-19 22:21:37 +02:00
12 lines
300 B
Bash
Executable file
12 lines
300 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# NOTE: this script should be called from the parent directory to
|
|
# properly work.
|
|
|
|
export CURRENT_VERSION=$(node -p "require('./package.json').version");
|
|
export NODE_ENV=production;
|
|
|
|
set -ex
|
|
|
|
yarn run build
|
|
|
|
sed -i -re "s/\%version\%/$CURRENT_VERSION/g" target/library/penpot.js
|