mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-07-09 03:04:19 -04:00
parent
f50a21dd22
commit
dfddb551d2
6
.github/workflows/nightly-docker.yml
vendored
6
.github/workflows/nightly-docker.yml
vendored
@ -25,9 +25,15 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: '14'
|
node-version: '14'
|
||||||
- run: |
|
- run: |
|
||||||
|
echo 'Removing old wwwroot'
|
||||||
|
rm -rf API/wwwroot/*
|
||||||
cd Kavita-webui/ || exit
|
cd Kavita-webui/ || exit
|
||||||
|
echo 'Installing web dependencies'
|
||||||
npm install
|
npm install
|
||||||
|
echo 'Building UI'
|
||||||
npm run prod
|
npm run prod
|
||||||
|
echo 'Copying back to Kavita wwwroot'
|
||||||
|
cp -r dist/* ../Kavita/API/wwwroot
|
||||||
cd ../ || exit
|
cd ../ || exit
|
||||||
|
|
||||||
- name: Compile dotnet app
|
- name: Compile dotnet app
|
||||||
|
6
.github/workflows/stable-docker.yml
vendored
6
.github/workflows/stable-docker.yml
vendored
@ -25,9 +25,15 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: '14'
|
node-version: '14'
|
||||||
- run: |
|
- run: |
|
||||||
|
echo 'Removing old wwwroot'
|
||||||
|
rm -rf API/wwwroot/*
|
||||||
cd Kavita-webui/ || exit
|
cd Kavita-webui/ || exit
|
||||||
|
echo 'Installing web dependencies'
|
||||||
npm install
|
npm install
|
||||||
|
echo 'Building UI'
|
||||||
npm run prod
|
npm run prod
|
||||||
|
echo 'Copying back to Kavita wwwroot'
|
||||||
|
cp -r dist/* ../Kavita/API/wwwroot
|
||||||
cd ../ || exit
|
cd ../ || exit
|
||||||
|
|
||||||
- name: Compile dotnet app
|
- name: Compile dotnet app
|
||||||
|
@ -59,6 +59,22 @@ Package()
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BuildUI()
|
||||||
|
{
|
||||||
|
ProgressStart 'Building UI'
|
||||||
|
echo 'Removing old wwwroot'
|
||||||
|
rm -rf API/wwwroot/*
|
||||||
|
cd ../Kavita-webui/ || exit
|
||||||
|
echo 'Installing web dependencies'
|
||||||
|
npm install
|
||||||
|
echo 'Building UI'
|
||||||
|
npm run prod
|
||||||
|
echo 'Copying back to Kavita wwwroot'
|
||||||
|
cp -r dist/* ../Kavita/API/wwwroot
|
||||||
|
cd ../Kavita/ || exit
|
||||||
|
ProgressEnd 'Building UI'
|
||||||
|
}
|
||||||
|
|
||||||
dir=$PWD
|
dir=$PWD
|
||||||
|
|
||||||
if [ -d _output ]
|
if [ -d _output ]
|
||||||
|
3
build.sh
3
build.sh
@ -32,7 +32,6 @@ Build()
|
|||||||
|
|
||||||
slnFile=Kavita.sln
|
slnFile=Kavita.sln
|
||||||
|
|
||||||
#dotnet clean $slnFile -c Debug
|
|
||||||
dotnet clean $slnFile -c Release
|
dotnet clean $slnFile -c Release
|
||||||
|
|
||||||
if [[ -z "$RID" ]];
|
if [[ -z "$RID" ]];
|
||||||
@ -102,8 +101,8 @@ Package()
|
|||||||
|
|
||||||
RID="$1"
|
RID="$1"
|
||||||
|
|
||||||
Build
|
|
||||||
BuildUI
|
BuildUI
|
||||||
|
Build
|
||||||
|
|
||||||
dir=$PWD
|
dir=$PWD
|
||||||
|
|
||||||
|
@ -37,6 +37,19 @@ BuildUI()
|
|||||||
npm run prod
|
npm run prod
|
||||||
cd ../Kavita/ || exit
|
cd ../Kavita/ || exit
|
||||||
ProgressEnd 'Building UI'
|
ProgressEnd 'Building UI'
|
||||||
|
|
||||||
|
ProgressStart 'Building UI'
|
||||||
|
echo 'Removing old wwwroot'
|
||||||
|
rm -rf API/wwwroot/*
|
||||||
|
cd ../Kavita-webui/ || exit
|
||||||
|
echo 'Installing web dependencies'
|
||||||
|
npm install
|
||||||
|
echo 'Building UI'
|
||||||
|
npm run prod
|
||||||
|
echo 'Copying back to Kavita wwwroot'
|
||||||
|
cp -r dist/* ../Kavita/API/wwwroot
|
||||||
|
cd ../Kavita/ || exit
|
||||||
|
ProgressEnd 'Building UI'
|
||||||
}
|
}
|
||||||
|
|
||||||
Package()
|
Package()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user