refactor
This commit is contained in:
parent
b8d748f5f3
commit
dd0aad6740
56 changed files with 555 additions and 278 deletions
|
@ -1,3 +0,0 @@
|
|||
#!/bin/bash
|
||||
cd /tmp/joplin/
|
||||
BUILD_SEQUENCIAL=1 yarn install
|
|
@ -1,7 +0,0 @@
|
|||
#/bin/bash
|
||||
apt install -y build-essential git python wget ca-certificates
|
||||
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
|
39
ressources/joplin-server/joplin-server
Executable file
39
ressources/joplin-server/joplin-server
Executable file
|
@ -0,0 +1,39 @@
|
|||
#!/bin/bash
|
||||
|
||||
envinit() {
|
||||
apt install -y build-essential git python wget ca-certificates
|
||||
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/laurent22/joplin.git
|
||||
cd joplin/
|
||||
git checkout $VERSION
|
||||
rm -fr packages/app*
|
||||
rm -fr packages/generator-joplin
|
||||
rm -fr packages/plugin-repo-cli
|
||||
rm -fr packages/plugins
|
||||
}
|
||||
|
||||
build() {
|
||||
cd /tmp/joplin/
|
||||
BUILD_SEQUENCIAL=1 yarn install
|
||||
}
|
||||
|
||||
makedeb(){
|
||||
PATH_BUILD=$1
|
||||
PATH_DEB=$2
|
||||
GIT_VERSION=$3
|
||||
|
||||
cp -fr ${PATH_BUILD}/tmp/joplin/packages/* ${PATH_DEB}/usr/lib/joplin-server/
|
||||
}
|
||||
echo $1
|
||||
FUNC=$1
|
||||
shift
|
||||
${FUNC} $*
|
|
@ -1,7 +0,0 @@
|
|||
#!/bin/bash
|
||||
PATH_BUILD=$1
|
||||
PATH_DEB=$2
|
||||
GIT_VERSION=$3
|
||||
|
||||
cp -fr ${PATH_BUILD}/tmp/joplin/packages/* ${PATH_DEB}/usr/lib/joplin-server/
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
#!/bin/bash
|
||||
VERSION=$1
|
||||
cd /tmp/
|
||||
git clone https://github.com/laurent22/joplin.git
|
||||
cd joplin/
|
||||
git checkout $VERSION
|
||||
rm -fr packages/app*
|
||||
rm -fr packages/generator-joplin
|
||||
rm -fr packages/plugin-repo-cli
|
||||
rm -fr packages/plugins
|
Loading…
Add table
Add a link
Reference in a new issue