Logo
Explore Help
Sign In
Dima/element-web
1
0
Fork 0
You've already forked element-web
Code Issues Pull Requests Actions Packages Projects Releases 1 Wiki Activity
Files
a17df609f32b44834cbd0e4bccc3a977182bf013
element-web/scripts/package.sh
T

16 lines
309 B
Bash
Raw Normal View History

Move package script out and make it tar into a versioned top level directory. It may as well be a shell script since it's unix specific anyway, and maintaining it inside package.json is now impractical.
2016-02-24 18:41:30 +00:00
#!/bin/sh
set -e
version=`git describe --dirty --tags || echo unknown`
npm run build
mkdir -p packages
Auto-create a sensible version file. Copy the vector dir so we can put it in there rather than creating files in the main vector dir.
2016-02-24 18:59:33 +00:00
cp -r vector vector-$version
echo $version > vector-$version/version
Move package script out and make it tar into a versioned top level directory. It may as well be a shell script since it's unix specific anyway, and maintaining it inside package.json is now impractical.
2016-02-24 18:41:30 +00:00
tar chvzf packages/vector-$version.tar.gz vector-$version
Auto-create a sensible version file. Copy the vector dir so we can put it in there rather than creating files in the main vector dir.
2016-02-24 18:59:33 +00:00
rm -r vector-$version
Move package script out and make it tar into a versioned top level directory. It may as well be a shell script since it's unix specific anyway, and maintaining it inside package.json is now impractical.
2016-02-24 18:41:30 +00:00
echo
echo "Packaged packages/vector-$version.tar.gz"
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.26.0 Page: 37ms Template: 3ms
Auto
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API