Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/scripts/SubmitTo-MicrosoftStore.ps1
Original file line number Diff line number Diff line change
@@ -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
66 changes: 66 additions & 0 deletions .github/submission/config.json
Original file line number Diff line number Diff line change
@@ -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,
"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": ""
}
}