Skip to content

Commit

Permalink
Fix self-contained packaging.
Browse files Browse the repository at this point in the history
  • Loading branch information
pchote authored and Mailaender committed Mar 13, 2021
1 parent 7694d08 commit b622afd
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 14 deletions.
6 changes: 0 additions & 6 deletions OpenRA.Launcher/OpenRA.Launcher.csproj
Expand Up @@ -65,10 +65,4 @@
<Analyzer Remove="@(Analyzer)" />
</ItemGroup>
</Target>
<ItemGroup>
<TrimmerRootAssembly Include="mscorlib" />
<TrimmerRootAssembly Include="netstandard" />
<TrimmerRootAssembly Include="System.IO.Pipes" />
<TrimmerRootAssembly Include="System.Threading.Tasks.Parallel" />
</ItemGroup>
</Project>
6 changes: 0 additions & 6 deletions OpenRA.WindowsLauncher/OpenRA.WindowsLauncher.csproj
Expand Up @@ -58,10 +58,4 @@
<Analyzer Remove="@(Analyzer)" />
</ItemGroup>
</Target>
<ItemGroup>
<TrimmerRootAssembly Include="mscorlib" />
<TrimmerRootAssembly Include="netstandard" />
<TrimmerRootAssembly Include="System.IO.Pipes" />
<TrimmerRootAssembly Include="System.Threading.Tasks.Parallel" />
</ItemGroup>
</Project>
4 changes: 2 additions & 2 deletions packaging/functions.sh
Expand Up @@ -97,7 +97,7 @@ install_assemblies() {
ORIG_PWD=$(pwd)
cd "${SRC_PATH}" || exit 1

dotnet publish -c Release -p:TargetPlatform="${TARGETPLATFORM}" -p:PublishTrimmed=true -p:CopyGenericLauncher="${COPY_GENERIC_LAUNCHER}" -p:CopyCncDll="${COPY_CNC_DLL}" -p:CopyD2kDll="${COPY_D2K_DLL}" -r "${TARGETPLATFORM}" -o "${DEST_PATH}"
dotnet publish -c Release -p:TargetPlatform="${TARGETPLATFORM}" -p:PublishTrimmed=true -p:CopyGenericLauncher="${COPY_GENERIC_LAUNCHER}" -p:CopyCncDll="${COPY_CNC_DLL}" -p:CopyD2kDll="${COPY_D2K_DLL}" -r "${TARGETPLATFORM}" -o "${DEST_PATH}" --self-contained true

cd "${ORIG_PWD}" || exit 1
}
Expand Down Expand Up @@ -170,7 +170,7 @@ install_windows_launcher()
FAQ_URL="${7}"

rm -rf "${SRC_PATH}/OpenRA.WindowsLauncher/obj"
dotnet publish "${SRC_PATH}/OpenRA.WindowsLauncher/OpenRA.WindowsLauncher.csproj" -c Release -r "${TARGETPLATFORM}" -p:LauncherName="${LAUNCHER_NAME}" -p:TargetPlatform="${TARGETPLATFORM}" -p:ModID="${MOD_ID}" -p:DisplayName="${MOD_NAME}" -p:FaqUrl="${FAQ_URL}" -o "${DEST_PATH}"
dotnet publish "${SRC_PATH}/OpenRA.WindowsLauncher/OpenRA.WindowsLauncher.csproj" -c Release -r "${TARGETPLATFORM}" -p:LauncherName="${LAUNCHER_NAME}" -p:TargetPlatform="${TARGETPLATFORM}" -p:ModID="${MOD_ID}" -p:DisplayName="${MOD_NAME}" -p:FaqUrl="${FAQ_URL}" -o "${DEST_PATH}" --self-contained true

# NET 5 is unable to customize the application host for windows when compiling from Linux,
# so we must patch the properties we need in the PE header.
Expand Down

0 comments on commit b622afd

Please sign in to comment.