Skip to content

Commit

Permalink
Merge pull request #1689 from erri120/feat/metadata-files
Browse files Browse the repository at this point in the history
Update metadata files
  • Loading branch information
erri120 authored Jun 26, 2024
2 parents 727c0ee + e8be7f8 commit f2bbcb4
Show file tree
Hide file tree
Showing 10 changed files with 130 additions and 114 deletions.
1 change: 1 addition & 0 deletions src/NexusMods.App/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Deploy/
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
13 changes: 0 additions & 13 deletions src/NexusMods.App/app.desktop

This file was deleted.

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
51 changes: 0 additions & 51 deletions src/NexusMods.App/app.metainfo.xml

This file was deleted.

58 changes: 16 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,47 +47,22 @@ 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
SetupUninstallScript = "uninstall.bat"







# unused but required
FlatpakPlatformRuntime = org.freedesktop.Platform
FlatpakPlatformSdk = org.freedesktop.Sdk
FlatpakPlatformVersion = 23.08
15 changes: 15 additions & 0 deletions src/NexusMods.App/com.nexusmods.app.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[Desktop Entry]
Type=Application
Version=1.0
Name=Nexus Mods App
GenericName=Mod Manager
Comment=Mod Manager for your games
Categories=Game
Terminal=false
MimeType=x-scheme-handler/nxm
Icon=com.nexusmods.app
Exec=${INSTALL_EXEC} %u
TryExec=${INSTALL_EXEC}
X-AppImage-Integrate=true
X-AppImage-Name=NexusMods.App
X-AppImage-Arch=x86_64
52 changes: 52 additions & 0 deletions src/NexusMods.App/com.nexusmods.app.metainfo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
<!-- See https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html#spec-component-filespec -->

<id>com.nexusmods.app</id>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-3.0-only</project_license>

<name>Nexus Mods App</name>
<summary>Mod Manager for your games</summary>

<developer id="com.nexusmods">
<name>The Nexus Mods Team</name>
</developer>

<description>
<p>The Nexus Mods App is a mod manager for your games and the successor to Vortex with native support for Linux.</p>
</description>

<launchable type="desktop-id">com.nexusmods.app.desktop</launchable>

<url type="homepage">https://github.com/Nexus-Mods/NexusMods.App</url>
<url type="bugtracker">https://github.com/Nexus-Mods/NexusMods.App/issues</url>
<url type="faq">https://nexus-mods.github.io/NexusMods.App/users/FAQ/</url>
<url type="help">https://nexus-mods.github.io/NexusMods.App/users</url>
<url type="translate">https://nexus-mods.github.io/NexusMods.App/developers/Contributing/</url>
<url type="contact">https://discord.gg/ReWTxb93jS</url>
<url type="vcs-browser">https://github.com/Nexus-Mods/NexusMods.App</url>
<url type="contribute">https://nexus-mods.github.io/NexusMods.App/developers/Contributing/</url>

<content_rating type="oars-1.0">
<content_attribute id="social-info">moderate</content_attribute>
</content_rating>

<categories>
<category>Game</category>
</categories>

<recommends>
<memory>1024</memory>

<internet>always</internet>
<display_length compare="ge">360</display_length>

<id version="1.0" compare="ge">com.valvesoftware.Steam</id>
</recommends>

<supports>
<id version="1.0" compare="ge">com.usebottles.bottles</id>
</supports>

</component>
File renamed without changes.
12 changes: 12 additions & 0 deletions src/NexusMods.App/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f2bbcb4

Please sign in to comment.