refactor
This commit is contained in:
parent
b8d748f5f3
commit
dd0aad6740
56 changed files with 555 additions and 278 deletions
|
@ -1,5 +0,0 @@
|
|||
#!/bin/bash
|
||||
cd /tmp/web
|
||||
PATH=$PATH:/tmp/web/bin
|
||||
npm install
|
||||
npm run build
|
|
@ -1,7 +0,0 @@
|
|||
#/bin/bash
|
||||
apt install -y git build-essential python2 wget ruby-dev libxml2 libz-dev
|
||||
wget -qO - https://deb.nodesource.com/setup_16.x | bash
|
||||
wget -qO - https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor > /usr/share/keyrings/yarnkey.gpg
|
||||
echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" > /etc/apt/sources.list.d/yarn.list
|
||||
apt-get update
|
||||
apt-get install -y yarn nodejs
|
|
@ -1,6 +0,0 @@
|
|||
#!/bin/bash
|
||||
PATH_BUILD=$1
|
||||
PATH_DEB=$2
|
||||
GIT_VERSION=$3
|
||||
|
||||
cp -fr ${PATH_BUILD}/tmp/web/* ${PATH_DEB}/usr/lib/standardnotes/web/
|
|
@ -1,6 +0,0 @@
|
|||
#!/bin/bash
|
||||
VERSION=$1
|
||||
cd /tmp/
|
||||
git clone https://github.com/standardnotes/web.git
|
||||
cd web/
|
||||
git checkout $VERSION
|
37
ressources/standardnotes-web/standardnotes-web
Executable file
37
ressources/standardnotes-web/standardnotes-web
Executable file
|
@ -0,0 +1,37 @@
|
|||
#!/bin/bash
|
||||
|
||||
envinit() {
|
||||
apt install -y git build-essential python2 wget ruby-dev libxml2 libz-dev
|
||||
wget -qO - https://deb.nodesource.com/setup_16.x | bash
|
||||
wget -qO - https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor > /usr/share/keyrings/yarnkey.gpg
|
||||
echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" > /etc/apt/sources.list.d/yarn.list
|
||||
apt-get update
|
||||
apt-get install -y yarn nodejs
|
||||
}
|
||||
|
||||
prebuild(){
|
||||
VERSION=$1
|
||||
cd /tmp/
|
||||
git clone https://github.com/standardnotes/web.git
|
||||
cd web/
|
||||
git checkout $VERSION
|
||||
}
|
||||
|
||||
build() {
|
||||
cd /tmp/web
|
||||
PATH=$PATH:/tmp/web/bin
|
||||
npm install
|
||||
npm run build
|
||||
}
|
||||
|
||||
makedeb(){
|
||||
PATH_BUILD=$1
|
||||
PATH_DEB=$2
|
||||
GIT_VERSION=$3
|
||||
|
||||
cp -fr ${PATH_BUILD}/tmp/web/* ${PATH_DEB}/usr/lib/standardnotes/web/
|
||||
}
|
||||
echo $1
|
||||
FUNC=$1
|
||||
shift
|
||||
${FUNC} $*
|
Loading…
Add table
Add a link
Reference in a new issue