mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-31 20:24:27 -04:00
Making a real good install.sh
This commit is contained in:
parent
0f4ab5fe9d
commit
126dff2fec
@ -40,6 +40,10 @@
|
|||||||
<EmbeddedResource Include="libtranscoder.so">
|
<EmbeddedResource Include="libtranscoder.so">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
|
<None Remove="kyoo.sh" />
|
||||||
|
<EmbeddedResource Include="kyoo.sh">
|
||||||
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
|
</EmbeddedResource>
|
||||||
</ItemGroup>
|
</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') ">
|
||||||
|
11
install.sh
Normal file → Executable file
11
install.sh
Normal file → Executable file
@ -1,8 +1,17 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [[ $(/usr/bin/id -u) -ne 0 ]]; then
|
||||||
|
echo "The script must be run as root since it create an user for kyoo and install the app inside the /opt folder."
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
git clone https://github.com/AnonymusRaccoon/Kyoo --recurse
|
git clone https://github.com/AnonymusRaccoon/Kyoo --recurse
|
||||||
cd Kyoo
|
cd Kyoo
|
||||||
git pull --recurse
|
git pull --recurse
|
||||||
chmod +x build.sh
|
chmod +x build.sh
|
||||||
./build.sh
|
./build.sh
|
||||||
dotnet publish -c Release -o /opt/kyoo Kyoo/Kyoo.csproj
|
dotnet publish -c Release -o /opt/kyoo Kyoo/Kyoo.csproj
|
||||||
|
useradd -rU kyoo
|
||||||
|
chown -R kyoo /opt/kyoo
|
||||||
|
chgrp -R kyoo /opt/kyoo
|
||||||
|
chmod +x /opt/kyoo/kyoo.sh
|
||||||
|
Loading…
x
Reference in New Issue
Block a user