mirror of
https://github.com/immense/Remotely.git
synced 2025-10-26 11:27:15 +00:00
Make Linux GUI single file.
This commit is contained in:
parent
4943eaef57
commit
a18167a0a4
1
.gitignore
vendored
1
.gitignore
vendored
@ -274,3 +274,4 @@ __pycache__/
|
||||
/Server/wwwroot/scripts/**/*.map
|
||||
/Server/Server.db-shm
|
||||
/Server/Server.db-wal
|
||||
/Server/wwwroot/Downloads/Remotely_Desktop
|
||||
|
||||
@ -6,6 +6,8 @@
|
||||
<AssemblyName>Remotely_Desktop</AssemblyName>
|
||||
<RootNamespace>Remotely.Desktop.Linux</RootNamespace>
|
||||
<Platforms>AnyCPU;x64;x86</Platforms>
|
||||
<PublishSingleFile>true</PublishSingleFile>
|
||||
<RuntimeIdentifier>linux-x64</RuntimeIdentifier>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="Models\" />
|
||||
|
||||
@ -30,7 +30,7 @@
|
||||
<p>
|
||||
<strong>Download:</strong>
|
||||
<br />
|
||||
<a href="~/Downloads/Remotely_Desktop.Linux.zip">Linux Zipped</a>
|
||||
<a href="~/Downloads/Remotely_Desktop">Linux Executable</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -259,6 +259,7 @@ namespace Remotely.Server
|
||||
app.UseStaticFiles(new StaticFileOptions()
|
||||
{
|
||||
FileProvider = new PhysicalFileProvider(Path.Combine(Directory.GetCurrentDirectory(), "wwwroot", "Downloads")),
|
||||
ServeUnknownFileTypes = true,
|
||||
RequestPath = new PathString("/Downloads"),
|
||||
ContentTypeProvider = provider,
|
||||
DefaultContentType = "application/octet-stream"
|
||||
|
||||
@ -129,12 +129,7 @@ dotnet publish /p:Version=$CurrentVersion /p:FileVersion=$CurrentVersion --runti
|
||||
# Publish Linux GUI App
|
||||
$PublishDir = "$Root\Desktop.Linux\bin\Release\netcoreapp3.1\linux-x64\publish\"
|
||||
dotnet publish /p:Version=$CurrentVersion /p:FileVersion=$CurrentVersion --runtime linux-x64 --configuration Release --output "$PublishDir" "$Root\Desktop.Linux\"
|
||||
# Compress Linux GUI App
|
||||
Compress-Archive -Path "$PublishDir\*" -DestinationPath "$PublishDir\Remotely_Desktop.Linux.zip" -CompressionLevel Optimal -Force
|
||||
while ((Test-Path -Path "$PublishDir\Remotely_Desktop.Linux.zip") -eq $false){
|
||||
Start-Sleep -Seconds 1
|
||||
}
|
||||
Move-Item -Path "$PublishDir\Remotely_Desktop.Linux.zip" -Destination "$Root\Server\wwwroot\Downloads\Remotely_Desktop.Linux.zip" -Force
|
||||
Move-Item -Path "$PublishDir\Remotely_Desktop" -Destination "$Root\Server\wwwroot\Downloads\Remotely_Desktop" -Force
|
||||
|
||||
|
||||
# Build .NET Framework ScreenCaster (32-bit)
|
||||
@ -153,7 +148,7 @@ Get-ChildItem -Path "$Root\ScreenCast.Win\bin\x64\Release\" -Exclude "*.xml" | C
|
||||
# Build Windows GUI App
|
||||
|
||||
&"$MSBuildPath" "$Root\Desktop.Win" /t:Build /p:Configuration=Release /p:Platform=AnyCPU
|
||||
Move-Item -Path "$Root\Desktop.Win\bin\Release\Remotely_Desktop.exe" -Destination "$Root\Server\wwwroot\Downloads\Remotely_Desktop.exe"
|
||||
Move-Item -Path "$Root\Desktop.Win\bin\Release\Remotely_Desktop.exe" -Destination "$Root\Server\wwwroot\Downloads\Remotely_Desktop.exe" -Force
|
||||
if ($SignAssemblies) {
|
||||
&"$Root\Utilities\signtool.exe" sign /f "$CertificatePath" /p $CertificatePassword /t http://timestamp.digicert.com "$Root\Server\wwwroot\Downloads\Remotely_Desktop.exe"
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user