Skip to content

Commit 3150b9d

Browse files
authoredMar 5, 2025
Update
1 parent fd2d7f1 commit 3150b9d

File tree

3 files changed

+34
-16
lines changed

3 files changed

+34
-16
lines changed
 

‎.github/scripts/Build-AppSolution.ps1

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@
22
# Licensed under the MIT License.
33

44
param(
5-
[string]$Branch = "", # This has to correspond with one of the AppEnvironment enum values
6-
[string]$SolutionPath = "Files.sln"
7-
[string]$StartupProjectPath = ""
8-
[string]$Platform = "x64"
9-
[string]$Configuration = "Debug"
10-
[string]$AppxBundlePlatforms = "x64|arm64"
11-
[string]$AppxPackageDir = ""
12-
[string]$AppInstallerUrl = "" # Sideload only
13-
[string]$AppxPackageCertKeyFile = "" # Debug only
5+
[string]$ReleaseBranch = "Debug", # This has to correspond with one of the AppEnvironment enum values
6+
[string]$SolutionPath = "Files.slnx"
7+
[string]$StartupProjectPath = ""
8+
[string]$Platform = "x64"
9+
[string]$Configuration = "Debug"
10+
[string]$AppxBundlePlatforms = "x64|arm64"
11+
[string]$AppxPackageDir = ""
12+
[string]$AppInstallerUrl = "" # Sideload only
13+
[string]$AppxPackageCertKeyFile = "" # Debug only
1414
)
1515

1616
# Restore the solution
1717
msbuild $SolutionPath /t:Restore /p:Platform=$Platform /p:Configuration=$Configuration /p:PublishReadyToRun=true
1818

19-
if ($Branch -eq "Debug")
19+
if ($ReleaseBranch -eq "Debug")
2020
{
2121
if ($Platform -eq "x64")
2222
{
@@ -44,10 +44,11 @@ if ($Branch -eq "Debug")
4444
/p:AppxBundle=Never
4545
}
4646
}
47-
elseif ($Branch -contains "Sideload")
47+
elseif ($ReleaseBranch -contains "Sideload")
4848
{
4949
msbuild $StartupProjectPath `
5050
/t:Build `
51+
/clp:ErrorsOnly `
5152
/p:Platform=$Platform `
5253
/p:Configuration=$Configuration `
5354
/p:AppxBundlePlatforms=$AppxBundlePlatforms `
@@ -63,10 +64,11 @@ elseif ($Branch -contains "Sideload")
6364
$fileContent = $fileContent.Replace('http://schemas.microsoft.com/appx/appinstaller/2017/2', $newSchema)
6465
$fileContent | Set-Content $localFilePath
6566
}
66-
elseif ($Branch -contains "Store")
67+
elseif ($ReleaseBranch -contains "Store")
6768
{
6869
msbuild $StartupProjectPath `
6970
/t:Build `
71+
/clp:ErrorsOnly `
7072
/p:Platform=$Platform `
7173
/p:Configuration=$Configuration `
7274
/p:AppxBundlePlatforms=$AppxBundlePlatforms `

‎.github/workflows/cd.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
# Copyright (c) Files Community
22
# Licensed under the MIT License.
33

4+
# Abstract:
5+
# Deploys Files to either Sideload or Store.
6+
#
7+
# Workflow:
8+
# 1. Configure manifest, logo and secrets
9+
# 2. Restore, build and package Files
10+
# 3. Publish the appinstaller to files.community if sideloading
11+
# 4. Sign the package if sideloading
12+
# 5. Publish the package to either Azure or Microsoft Developer Center
13+
414
name: Files CD
515

616
on:
@@ -23,7 +33,7 @@ env:
2333
PLATFORM: 'x64'
2434
APPX_BUNDLE_PLATFORMS: 'x64|arm64'
2535
WORKING_DIR: '${{ github.workspace }}' # D:\a\Files\Files\
26-
SOLUTION_PATH: '${{ github.workspace }}\Files.sln'
36+
SOLUTION_PATH: '${{ github.workspace }}\Files.slnx'
2737
ARTIFACTS_STAGING_DIR: '${{ github.workspace }}\artifacts'
2838
APPX_PACKAGE_DIR: '${{ github.workspace }}\artifacts\AppxPackages'
2939
PACKAGE_PROJECT_DIR: '${{ github.workspace }}\src\Files.App (Package)'

‎.github/workflows/ci.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1-
# Copyright (c) 2024 Files Community
2-
# Licensed under the MIT License. See the LICENSE.
1+
# Copyright (c) Files Community
2+
# Licensed under the MIT License.
3+
4+
# Abstract:
5+
# This CI is executed when a new commit is created on the main branch or
6+
# on a PR whose head branch is the main branch.
7+
# However, the CI will not be executed if files not directly related to
8+
# source code maintenance are updated.
39

410
name: Files CI
511

@@ -23,7 +29,7 @@ run-name: ${{ github.event_name == 'pull_request' && 'Files PR Validation' || 'F
2329

2430
env:
2531
WORKING_DIR: '${{ github.workspace }}' # Default: 'D:\a\Files\Files'
26-
SOLUTION_PATH: '${{ github.workspace }}\Files.sln'
32+
SOLUTION_PATH: '${{ github.workspace }}\Files.slnx'
2733
PACKAGE_PROJECT_DIR: '${{ github.workspace }}\src\Files.App (Package)'
2834
PACKAGE_PROJECT_PATH: '${{ github.workspace }}\src\Files.App (Package)\Files.Package.wapproj'
2935
AUTOMATED_TESTS_PLATFORM: 'x64'

0 commit comments

Comments
 (0)