From 6920cd73d421964f1e8e34c41bef60bb775a0063 Mon Sep 17 00:00:00 2001 From: 0x5BFA <62196528+0x5bfa@users.noreply.github.com> Date: Thu, 21 Nov 2024 08:04:10 +0900 Subject: [PATCH 1/3] Create SubmitTo-MicrosoftStore.ps1 --- .github/scripts/SubmitTo-MicrosoftStore.ps1 | 31 +++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/scripts/SubmitTo-MicrosoftStore.ps1 diff --git a/.github/scripts/SubmitTo-MicrosoftStore.ps1 b/.github/scripts/SubmitTo-MicrosoftStore.ps1 new file mode 100644 index 000000000000..d2a311dfc248 --- /dev/null +++ b/.github/scripts/SubmitTo-MicrosoftStore.ps1 @@ -0,0 +1,31 @@ +# Copyright (c) 2024 Files Community +# Licensed under the MIT License. See the LICENSE. + +param( + [string]$SubmissionDirPath = "", + [string]$StoreBrokerConfigPath = "", + [string]$AppxPackagePath = "", + [string]$PartnerCenterClientId = "", + [string]$PartnerCenterClientSecret = "", + [string]$PartnerCenterStoreId = "", + [string]$PartnerCenterTenantId = "" +) + +# Setup +Set-ExecutionPolicy RemoteSigned -Force +Set-PSRepository -Name "PSGallery" -InstallationPolicy Trusted +Install-Module -Name StoreBroker + +# Authenticate StoreBroker +$UserName = $PartnerCenterClientId +$Password = ConvertTo-SecureString $PartnerCenterClientSecret +$Credential = New-Object System.Management.Automation.PSCredential ($UserName, $Password) +Set-StoreBrokerAuthentication -TenantId $PartnerCenterTenantId -Credential $Credential + +# Prepare the submission package +New-SubmissionPackage -ConfigPath $StoreBrokerConfigPath -AppxPath $AppxPackagePath -OutPath $SubmissionDirPath -OutName 'submission' +$SubmissionDataPath = Join-Path -Path $SubmissionDirPath -ChildPath 'submission.json' +$SubmissionPackagePath = Join-Path -Path $SubmissionDirPath -ChildPath 'submission.zip' + +# Upload the package +Update-ApplicationSubmission -Verbose -ReplacePackages -AppId $PartnerCenterStoreId -SubmissionDataPath $SubmissionDataPath -PackagePath $SubmissionPackagePath -AutoCommit -Force -NoStatus From 870f9881f97d82db1ce3a949167a2b3674a2cdd2 Mon Sep 17 00:00:00 2001 From: 0x5BFA <62196528+0x5bfa@users.noreply.github.com> Date: Thu, 21 Nov 2024 08:08:54 +0900 Subject: [PATCH 2/3] Create config.json --- .github/submission/config.json | 66 ++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 .github/submission/config.json diff --git a/.github/submission/config.json b/.github/submission/config.json new file mode 100644 index 000000000000..3fee5f1bc9aa --- /dev/null +++ b/.github/submission/config.json @@ -0,0 +1,66 @@ +{ + "packageParameters": { + "PDPRootPath": "", + "Release": "", + "PDPInclude": [ + ], + "PDPExclude": [ + ], + "LanguageExclude": [ + "default" + ], + "ImagesRootPath": "", + "MediaFallbackLanguage": "", + "AppxPath": [ + ], + "OutPath": "", + "OutName": "", + "DisableAutoPackageNameFormatting": false + }, + "appSubmission": { + "appId": "", + "targetPublishDate": null, + "visibility": "NotSet", + "pricing": { + "priceId": "NotAvailable", + "trialPeriod": "NoFreeTrial", + "marketSpecificPricings": { + }, + "sales": [ + ] + }, + "allowTargetFutureDeviceFamilies": { + "Xbox": false, + "Team": false, // Surface Hub + "Holographic": false, + "Desktop": false, + "Mobile": false + }, + "allowMicrosoftDecideAppAvailabilityToFutureDeviceFamilies": false, + "enterpriseLicensing": "None", + "applicationCategory": "NotSet", + "hardwarePreferences": [ + ], + "hasExternalInAppProducts": false, + "meetAccessibilityGuidelines": false, + "canInstallOnRemovableMedia": false, + "automaticBackupEnabled": false, + "isGameDvrEnabled": false, + "gamingOptions": [{ + "genres": [ + ], + "isLocalMultiplayer": false, + "isLocalCooperative": false, + "isOnlineMultiplayer": false, + "isOnlineCooperative": false, + "localMultiplayerMinPlayers": 0, + "localMultiplayerMaxPlayers": 0, + "localCooperativeMinPlayers": 0, + "localCooperativeMaxPlayers": 0, + "isBroadcastingPrivilegeGranted": false, + "isCrossPlayEnabled": false, + "kinectDataForExternal": "Disabled" + }], + "notesForCertification": "" + } +} From f5113b0cae1623a9e9c866c0f4d206bfe929752e Mon Sep 17 00:00:00 2001 From: 0x5BFA <62196528+0x5bfa@users.noreply.github.com> Date: Thu, 21 Nov 2024 08:09:37 +0900 Subject: [PATCH 3/3] Update config.json --- .github/submission/config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/submission/config.json b/.github/submission/config.json index 3fee5f1bc9aa..51b34d71e0a8 100644 --- a/.github/submission/config.json +++ b/.github/submission/config.json @@ -31,7 +31,7 @@ }, "allowTargetFutureDeviceFamilies": { "Xbox": false, - "Team": false, // Surface Hub + "Team": false, "Holographic": false, "Desktop": false, "Mobile": false