Skip to content

Commit

Permalink
Fix msix signing
Browse files Browse the repository at this point in the history
  • Loading branch information
DRSchlaubi committed Sep 21, 2023
1 parent 5c34797 commit 5c2401f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
4 changes: 2 additions & 2 deletions app/desktop/msix/appxmanifest.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<Package xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10" xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10" xmlns:uap5="http://schemas.microsoft.com/appx/manifest/uap/windows10/5" xmlns:uap10="http://schemas.microsoft.com/appx/manifest/uap/windows10/10">
<!-- DO NOT EDIT THIS VERSION IT IS UPDATED AUTOMATICALLY -->
<Identity Name="11839Schlaubi.dev.Tonbrett" Version="1.0.1.0" Publisher="CN=4C05965C-D683-4386-B189-07E2E08CAA6C" ProcessorArchitecture="x64" />
<Identity Name="dev.schlaubi.Tonbrett" Version="0.0.0.0" Publisher="[email protected], CN=&quot;Open Source Developer, Michael Rittmeister&quot;, O=Open Source Developer, L=Gauting, S=Bavaria, C=DE" ProcessorArchitecture="x64" />
<Properties>
<DisplayName>Tonbrett</DisplayName>
<PublisherDisplayName>Schlaubi.dev</PublisherDisplayName>
<PublisherDisplayName>Schlaubi</PublisherDisplayName>
<Description>Companion app for Discord soundboard bot</Description>
<Logo>logo.png</Logo>
</Properties>
Expand Down
12 changes: 1 addition & 11 deletions app/desktop/msix/update_msix_version.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
param (
[Parameter(Mandatory=$true)][String]$Version,
[Parameter(Mandatory=$false)][String]$IsMsix = "false"
[Parameter(Mandatory=$true)][string]$Version
)

$file = 'appxmanifest.xml'
Expand All @@ -10,13 +9,4 @@ $xml.Load($file)
$identity = $xml.GetElementsByTagName("Identity")[0]
$identity.SetAttribute("Version", $Version)

if ($IsMsix.Equals("true"))
{
$identity.SetAttribute("Name", "11839Schlaubi.dev.Tonbrett")
$identity.SetAttribute("Publisher", "CN=4C05965C-D683-4386-B189-07E2E08CAA6C")

$displayName = $xml.GetElementsByTagName("PublisherDisplayName")[0]
$displayName.InnerText = "Schlaubi.dev"
}

$xml.Save($file)

0 comments on commit 5c2401f

Please sign in to comment.