commit
ac94d9d173
12
PKGBUILD
12
PKGBUILD
|
@ -24,11 +24,17 @@ build() {
|
||||||
# Remove husky (git hooks) from dependencies
|
# Remove husky (git hooks) from dependencies
|
||||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||||
sed -i '/"husky": ".*"/d' package.json
|
sed -i '/"husky": ".*"/d' package.json
|
||||||
|
|
||||||
# Install dependencies for the Tools used on another projects
|
# Install dependencies for the Tools used on another projects
|
||||||
cd "${srcdir}/${pkgname}-${pkgver}/Tools"
|
cd "${srcdir}/${pkgname}-${pkgver}/Tools"
|
||||||
npm install
|
npm install
|
||||||
|
|
||||||
|
# Run copyLib and build the typescript
|
||||||
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||||
|
npm install
|
||||||
|
npm run copyLib
|
||||||
|
npm run tsc
|
||||||
|
|
||||||
# Build Cli CLient
|
# Build Cli CLient
|
||||||
cd "${srcdir}/${pkgname}-${pkgver}/CliClient"
|
cd "${srcdir}/${pkgname}-${pkgver}/CliClient"
|
||||||
|
|
||||||
|
@ -46,11 +52,7 @@ build() {
|
||||||
# Electron App
|
# Electron App
|
||||||
cd "${srcdir}/${pkgname}-${pkgver}/ElectronClient/app"
|
cd "${srcdir}/${pkgname}-${pkgver}/ElectronClient/app"
|
||||||
|
|
||||||
# NOTE: Manually forcing sqlite 4.0.7 for node v12, remove later on
|
|
||||||
npm install sqlite3@4.0.7
|
|
||||||
npm install
|
npm install
|
||||||
# Remove uneeed .vscode path that comes with it
|
|
||||||
rm -r node_modules/sqlite3/.vscode
|
|
||||||
|
|
||||||
rsync -a --delete "${srcdir}/${pkgname}-${pkgver}/ReactNativeClient/lib/" \
|
rsync -a --delete "${srcdir}/${pkgname}-${pkgver}/ReactNativeClient/lib/" \
|
||||||
"${srcdir}/${pkgname}-${pkgver}/ElectronClient/app/lib/"
|
"${srcdir}/${pkgname}-${pkgver}/ElectronClient/app/lib/"
|
||||||
|
|
Loading…
Reference in New Issue