Skip to content

Commit

Permalink
Update pupnet
Browse files Browse the repository at this point in the history
  • Loading branch information
erri120 committed Jun 26, 2024
1 parent 553ea69 commit ea2ba44
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 50 deletions.
28 changes: 24 additions & 4 deletions src/NexusMods.App/NexusMods.App.csproj
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<ApplicationIcon>nexus-logo.ico</ApplicationIcon>
<ApplicationIcon>icon.ico</ApplicationIcon>
<ApplicationManifest>app.manifest</ApplicationManifest>
</PropertyGroup>

<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<DefineConstants />
</PropertyGroup>
Expand Down Expand Up @@ -55,9 +56,28 @@
</ItemGroup>

<ItemGroup>
<None Update="uninstall-helper.ps1">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="uninstall-helper.ps1">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
<DependentUpon>app.pupnet.conf</DependentUpon>
</None>
<None Update="com.nexusmods.app.desktop">
<DependentUpon>app.pupnet.conf</DependentUpon>
</None>
<None Update="app.manifest">
<DependentUpon>app.pupnet.conf</DependentUpon>
</None>
<None Update="com.nexusmods.app.metainfo.xml">
<DependentUpon>app.pupnet.conf</DependentUpon>
</None>
<None Update="sign.bat">
<DependentUpon>app.pupnet.conf</DependentUpon>
</None>
<None Update="uninstall.bat">
<DependentUpon>app.pupnet.conf</DependentUpon>
</None>
<None Update="icon.svg">
<DependentUpon>app.pupnet.conf</DependentUpon>
</None>
</ItemGroup>

<Target Name="CopyCustomContentOnPublish" AfterTargets="Publish"
Expand Down
14 changes: 10 additions & 4 deletions src/NexusMods.App/app.manifest
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3">
<!-- This manifest is used on Windows only.
Don't remove it as it might cause problems with window transparency and embeded controls.
Don't remove it as it might cause problems with window transparency and embedded controls.
For more details visit https://learn.microsoft.com/en-us/windows/win32/sbscs/application-manifests -->
<assemblyIdentity type="win32" name="NexusMods.App" version="1.0.0.0" />
<assemblyIdentity type="win32" name="NexusMods.App" version="1.0.0.0" processorArchitecture="amd64" />

<asmv3:application>
<asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2024/WindowsSettings">
<supportedArchitectures>amd64</supportedArchitectures>
</asmv3:windowsSettings>
</asmv3:application>

<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
<application>
<!-- A list of the Windows versions that this application has been tested on
and is designed to work with. Uncomment the appropriate elements
and Windows will automatically select the most compatible environment. -->

<!-- Windows 10 and Windows 11 share the same Id-->
<!-- Windows 10 and Windows 11 share the same ID -->
<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" />
</application>
</compatibility>
Expand Down
47 changes: 5 additions & 42 deletions src/NexusMods.App/app.pupnet.conf
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,19 @@ AppChangeFile =

# PUBLISHER
PublisherName = Nexus Mods
PublisherCopyright = Copyright (C) Nexus Mods 2023
PublisherCopyright = Copyright (C) Nexus Mods 2024
PublisherLinkName = Home Page
PublisherLinkUrl = https://nexusmods.com
PublisherEmail =

# DESKTOP INTEGRATION
DesktopNoDisplay = false
DesktopTerminal = false
DesktopFile = app.desktop
StartCommand =
PrimeCategory =
MetaFile = app.metainfo.xml
DesktopFile = com.nexusmods.app.desktop
MetaFile = com.nexusmods.app.metainfo.xml
IconFiles = """
nexus-logo.ico
icon.ico
icon.svg
"""

# DOTNET PUBLISH
Expand All @@ -48,46 +47,10 @@ OutputDirectory = Deploy/OUT
AppImageArgs =
AppImageVersionOutput = false

# FLATPAK OPTIONS
FlatpakPlatformRuntime = org.freedesktop.Platform
FlatpakPlatformSdk = org.freedesktop.Sdk
FlatpakPlatformVersion = 22.08
FlatpakFinishArgs = """
--socket=wayland
--socket=x11
--filesystem=host
--share=network
"""
FlatpakBuilderArgs =

# RPM OPTIONS
RpmAutoReq = false
RpmAutoProv = true
RpmRequires = """
krb5-libs
libicu
openssl-libs
zlib
"""

# DEBIAN OPTIONS
DebianRecommends = """
libc6
libgcc1
libgcc-s1
libgssapi-krb5-2
libicu
libssl
libstdc++6
libunwind
zlib1g
"""

# WINDOWS SETUP OPTIONS
SetupAdminInstall = false
SetupCommandPrompt =
SetupMinWindowsVersion = 10
# TODO: signing
SetupSignTool =
SetupSuffixOutput =
SetupVersionOutput = false
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit ea2ba44

Please sign in to comment.