mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-31 12:14:46 -04:00
Adding a build script
This commit is contained in:
parent
ddafabf0d8
commit
e9a7bee3a8
9
Kyoo/.gitignore
vendored
9
Kyoo/.gitignore
vendored
@ -1,12 +1,5 @@
|
|||||||
## PROJECT CUSTOM IGNORES
|
## PROJECT CUSTOM IGNORES
|
||||||
# Transcoder build (auto generated from Kyoo.Transcoder sub-project)
|
libtranscoder.so
|
||||||
Transcoder/Kyoo.Transcoder.dll
|
|
||||||
Transcoder/Kyoo.Transcoder.ilk
|
|
||||||
Transcoder/Kyoo.Transcoder.lib
|
|
||||||
Transcoder/Kyoo.Transcoder.pdb
|
|
||||||
|
|
||||||
|
|
||||||
/Properties/launchSettings.json
|
|
||||||
|
|
||||||
## Ignore Visual Studio temporary files, build results, and
|
## Ignore Visual Studio temporary files, build results, and
|
||||||
## files generated by popular Visual Studio add-ons.
|
## files generated by popular Visual Studio add-ons.
|
||||||
|
@ -72,7 +72,8 @@ namespace Kyoo.InternalAPI
|
|||||||
}
|
}
|
||||||
|
|
||||||
isScanning = false;
|
isScanning = false;
|
||||||
while (!cancellationToken.IsCancellationRequested);
|
if (watch)
|
||||||
|
while (!cancellationToken.IsCancellationRequested);
|
||||||
Debug.WriteLine("&Crawler stopped");
|
Debug.WriteLine("&Crawler stopped");
|
||||||
runningCrawler = null;
|
runningCrawler = null;
|
||||||
return null;
|
return null;
|
||||||
|
@ -34,6 +34,13 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<_ContentIncludedByDefault Remove="ClientApp\e2e\tsconfig.json" />
|
<_ContentIncludedByDefault Remove="ClientApp\e2e\tsconfig.json" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<None Remove="libtranscoder.so" />
|
||||||
|
<EmbeddedResource Include="libtranscoder.so">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</EmbeddedResource>
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
<Target Name="DebugEnsureNodeEnv" BeforeTargets="Build" Condition=" '$(Configuration)' == 'Debug' And !Exists('$(SpaRoot)node_modules') ">
|
<Target Name="DebugEnsureNodeEnv" BeforeTargets="Build" Condition=" '$(Configuration)' == 'Debug' And !Exists('$(SpaRoot)node_modules') ">
|
||||||
<!-- Ensure Node.js is installed -->
|
<!-- Ensure Node.js is installed -->
|
||||||
|
65
build.sh
Executable file
65
build.sh
Executable file
@ -0,0 +1,65 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Checking for packages needed to compile the app.
|
||||||
|
PKG_EXISTS=1
|
||||||
|
dotnet --version >> /dev/null 2>&1
|
||||||
|
if [[ $? -ne 0 ]]; then
|
||||||
|
echo "FATAL: dotnet could not be found."
|
||||||
|
PKG_EXISTS=false
|
||||||
|
#Should check if the version is greater of equal to 3.0.100
|
||||||
|
fi
|
||||||
|
cmake --version >> /dev/null 2>&1
|
||||||
|
if [[ $? -ne 0 ]]; then
|
||||||
|
echo "FATAL: cmake could not be found."
|
||||||
|
PKG_EXISTS=false
|
||||||
|
fi
|
||||||
|
gcc -v >> /dev/null 2>&1
|
||||||
|
if [[ $? -ne 0 ]]; then
|
||||||
|
echo "FATAL: gcc could not be found."
|
||||||
|
PKG_EXISTS=false
|
||||||
|
fi
|
||||||
|
make -v >> /dev/null 2>&1
|
||||||
|
if [[ $? -ne 0 ]]; then
|
||||||
|
echo "FATAL: make could not be found."
|
||||||
|
PKG_EXISTS=false
|
||||||
|
fi
|
||||||
|
node -v >> /dev/null 2>&1
|
||||||
|
if [[ $? -ne 0 ]]; then
|
||||||
|
echo "FATAL: node could not be found."
|
||||||
|
PKG_EXISTS=false
|
||||||
|
fi
|
||||||
|
npm -v >> /dev/null 2>&1
|
||||||
|
if [[ $? -ne 0 ]]; then
|
||||||
|
echo "FATAL: npm could not be found."
|
||||||
|
PKG_EXISTS=false
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ PKG_EXISTS -eq false ]]; then
|
||||||
|
echo "Some requiered packages could not be found. Install them and run this script again."
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "All packages are here, building the app..."
|
||||||
|
|
||||||
|
|
||||||
|
# Configure ffmpeg.
|
||||||
|
|
||||||
|
echo "Building ffmpeg..."
|
||||||
|
cd transcoder/ffmpeg
|
||||||
|
if [[ ! -f "config.h" ]]; then
|
||||||
|
./configure --pkg-config-flags=--static --disable-shared --enable-static --disable-zlib --disable-iconv --disable-asm --disable-ffplay --disable-ffprobe --disable-ffmpeg
|
||||||
|
fi
|
||||||
|
make
|
||||||
|
cd ..
|
||||||
|
echo "Done."
|
||||||
|
|
||||||
|
echo "Building the transcoder..."
|
||||||
|
mkdir --parent build && cd build
|
||||||
|
cmake ..
|
||||||
|
make
|
||||||
|
cd ../..
|
||||||
|
echo "Done"
|
||||||
|
|
||||||
|
echo "Installing the transcoder..."
|
||||||
|
mv transcoder/build/libtranscoder.so Kyoo/
|
||||||
|
echo "Installation complete."
|
@ -1 +1 @@
|
|||||||
Subproject commit 267599a6f66044923d4d4772f5d1bd556e12536c
|
Subproject commit d8f72ff87020f2d38a4552f6083ef0659bf1f2be
|
Loading…
x
Reference in New Issue
Block a user