Skip to content

Commit 4c59c12

Browse files
committed
Merge branch 'main' into editorconfig
2 parents 589ca67 + e8ed94d commit 4c59c12

File tree

1,194 files changed

+10772
-3193
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,194 files changed

+10772
-3193
lines changed

.github/scripts/Configure-AppxManifest.ps1

+11-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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.
33

44
param(
55
[string]$Branch = "", # This has to correspond with one of the AppEnvironment enum values
@@ -80,6 +80,12 @@ elseif ($Branch -eq "StorePreview")
8080
(Get-Content $_ -Raw | ForEach-Object -Process { $_ -replace "Assets\\AppTiles\\Dev", "Assets\AppTiles\Preview" }) | `
8181
Set-Content $_ -NoNewline `
8282
}
83+
84+
Get-ChildItem $WorkingDir -Include *.cs, *.cpp -recurse | ForEach-Object -Process `
85+
{ `
86+
(Get-Content $_ -Raw | ForEach-Object -Process { $_ -replace "files-dev", "files-preview" }) | `
87+
Set-Content $_ -NoNewline `
88+
}
8389
}
8490
elseif ($Branch -eq "SideloadStable")
8591
{
@@ -121,8 +127,8 @@ elseif ($Branch -eq "StoreStable")
121127
$xmlDoc.Package.Capabilities.RemoveChild($pm)
122128

123129
# Update app protocol and execution alias
124-
$ap.SetAttribute("Name", "files");
125-
$aea.RemoveChild($aea.FirstChild); # Avoid duplication
130+
$ap.SetAttribute("Name", "files-stable");
131+
$ea.SetAttribute("Alias", "files-stable.exe");
126132

127133
# Save modified Package.appxmanifest
128134
$xmlDoc.Save($PackageManifestPath)
@@ -135,7 +141,7 @@ elseif ($Branch -eq "StoreStable")
135141

136142
Get-ChildItem $WorkingDir -Include *.cs, *.cpp -recurse | ForEach-Object -Process `
137143
{ `
138-
(Get-Content $_ -Raw | ForEach-Object -Process { $_ -replace "files-dev", "files" }) | `
144+
(Get-Content $_ -Raw | ForEach-Object -Process { $_ -replace "files-dev", "files-stable" }) | `
139145
Set-Content $_ -NoNewline `
140146
}
141147
}

.github/scripts/Convert-TrxToMarkdown.ps1

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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.
33

44
# Abstract:
55
# This script analyzes the trx file that is the result of executing dotnet test and

.github/scripts/Generate-SelfCertPfx.ps1

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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.
33

44
# Abstract:
55
# This script generates a self-signed certificate for the temporary packaging as a pfx file.

.github/workflows/cd-sideload-preview.yml

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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.
33

44
# Abstract:
55
# Deploys Files Preview (Sideload).
@@ -36,6 +36,7 @@ jobs:
3636
PACKAGE_PROJECT_DIR: 'src\Files.App (Package)'
3737
PACKAGE_PROJECT_PATH: 'src\Files.App (Package)\Files.Package.wapproj'
3838
PACKAGE_MANIFEST_PATH: 'src\Files.App (Package)\Package.appxmanifest'
39+
LAUNCHER_PROJECT_PATH: 'src\Files.App.Launcher\Files.App.Launcher.vcxproj'
3940
TEST_PROJECT_PATH: 'tests\Files.InteractionTests\Files.InteractionTests.csproj'
4041
APP_INSTALLER_SIDELOAD_URL: 'https://cdn.files.community/files/preview/'
4142

@@ -86,6 +87,13 @@ jobs:
8687
-p:Configuration=$env:CONFIGURATION `
8788
-p:PublishReadyToRun=true
8889
90+
- name: Build launcher project
91+
shell: pwsh
92+
run: |
93+
msbuild "$env:LAUNCHER_PROJECT_PATH" `
94+
-p:Platform=$env:PLATFORM `
95+
-p:Configuration=$env:CONFIGURATION
96+
8997
- name: Build & package Files
9098
shell: pwsh
9199
run: |

.github/workflows/cd-sideload-stable.yml

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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.
33

44
# Abstract:
55
# Deploys Files (Sideload).
@@ -36,6 +36,7 @@ jobs:
3636
PACKAGE_PROJECT_DIR: 'src\Files.App (Package)'
3737
PACKAGE_PROJECT_PATH: 'src\Files.App (Package)\Files.Package.wapproj'
3838
PACKAGE_MANIFEST_PATH: 'src\Files.App (Package)\Package.appxmanifest'
39+
LAUNCHER_PROJECT_PATH: 'src\Files.App.Launcher\Files.App.Launcher.vcxproj'
3940
TEST_PROJECT_PATH: 'tests\Files.InteractionTests\Files.InteractionTests.csproj'
4041
APP_INSTALLER_SIDELOAD_URL: 'https://cdn.files.community/files/stable/'
4142

@@ -85,6 +86,13 @@ jobs:
8586
-p:Platform=$env:PLATFORM `
8687
-p:Configuration=$env:CONFIGURATION `
8788
-p:PublishReadyToRun=true
89+
90+
- name: Build launcher project
91+
shell: pwsh
92+
run: |
93+
msbuild "$env:LAUNCHER_PROJECT_PATH" `
94+
-p:Platform=$env:PLATFORM `
95+
-p:Configuration=$env:CONFIGURATION
8896
8997
- name: Build & package Files
9098
shell: pwsh

.github/workflows/cd-store-preview.yml

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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.
33

44
# Abstract:
55
# Deploys Files Preview (Store).
@@ -35,6 +35,7 @@ jobs:
3535
PACKAGE_PROJECT_DIR: '${{ github.workspace }}\src\Files.App (Package)'
3636
PACKAGE_PROJECT_PATH: '${{ github.workspace }}\src\Files.App (Package)\Files.Package.wapproj'
3737
PACKAGE_MANIFEST_PATH: '${{ github.workspace }}\src\Files.App (Package)\Package.appxmanifest'
38+
LAUNCHER_PROJECT_PATH: 'src\Files.App.Launcher\Files.App.Launcher.vcxproj'
3839

3940
steps:
4041
- name: Checkout the repository
@@ -83,6 +84,13 @@ jobs:
8384
-p:Configuration=$env:CONFIGURATION `
8485
-p:PublishReadyToRun=true
8586
87+
- name: Build launcher project
88+
shell: pwsh
89+
run: |
90+
msbuild "$env:LAUNCHER_PROJECT_PATH" `
91+
-p:Platform=$env:PLATFORM `
92+
-p:Configuration=$env:CONFIGURATION
93+
8694
- name: Build & package Files
8795
shell: pwsh
8896
run: |

.github/workflows/cd-store-stable.yml

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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.
33

44
# Abstract:
55
# Deploys Files (Store).
@@ -35,6 +35,7 @@ jobs:
3535
PACKAGE_PROJECT_DIR: '${{ github.workspace }}\src\Files.App (Package)'
3636
PACKAGE_PROJECT_PATH: '${{ github.workspace }}\src\Files.App (Package)\Files.Package.wapproj'
3737
PACKAGE_MANIFEST_PATH: '${{ github.workspace }}\src\Files.App (Package)\Package.appxmanifest'
38+
LAUNCHER_PROJECT_PATH: 'src\Files.App.Launcher\Files.App.Launcher.vcxproj'
3839

3940
steps:
4041
- name: Checkout the repository
@@ -83,6 +84,13 @@ jobs:
8384
-p:Configuration=$env:CONFIGURATION `
8485
-p:PublishReadyToRun=true
8586
87+
- name: Build launcher project
88+
shell: pwsh
89+
run: |
90+
msbuild "$env:LAUNCHER_PROJECT_PATH" `
91+
-p:Platform=$env:PLATFORM `
92+
-p:Configuration=$env:CONFIGURATION
93+
8694
- name: Build & package Files
8795
shell: pwsh
8896
run: |

.github/workflows/ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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.
33

44
# Abstract:
55
# This CI is executed when a new commit is created on the main branch or

Files.sln

+3-2
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,11 @@ EndProject
2727
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Files.App", "src\Files.App\Files.App.csproj", "{6F431D82-A5FF-4833-B5E4-702E1E523126}"
2828
ProjectSection(ProjectDependencies) = postProject
2929
{1EE996D6-885E-4403-A461-26C7A4E14D26} = {1EE996D6-885E-4403-A461-26C7A4E14D26}
30-
{A2FF3F3B-8EBC-4108-B99D-1476B7876656} = {A2FF3F3B-8EBC-4108-B99D-1476B7876656}
31-
{EBFA367F-CBDB-4CD0-B838-D6B95F61D1F6} = {EBFA367F-CBDB-4CD0-B838-D6B95F61D1F6}
30+
{25FD5045-6D4C-4DD0-B3AC-613AB59CBB07} = {25FD5045-6D4C-4DD0-B3AC-613AB59CBB07}
3231
{7756A1A4-17B5-4E6B-9B12-F19AA868A225} = {7756A1A4-17B5-4E6B-9B12-F19AA868A225}
32+
{A2FF3F3B-8EBC-4108-B99D-1476B7876656} = {A2FF3F3B-8EBC-4108-B99D-1476B7876656}
3333
{B3FE3F3B-CECC-4918-B72B-5488C3774125} = {B3FE3F3B-CECC-4918-B72B-5488C3774125}
34+
{EBFA367F-CBDB-4CD0-B838-D6B95F61D1F6} = {EBFA367F-CBDB-4CD0-B838-D6B95F61D1F6}
3435
EndProjectSection
3536
EndProject
3637
Project("{C7167F0D-BC9F-4E6E-AFE1-012C56B48DB5}") = "Files.Package", "src\Files.App (Package)\Files.Package.wapproj", "{8F60FD8E-1921-47D6-97B0-D26D7B3A4999}"

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2024 Files Community
3+
Copyright (c) 2025 Files Community
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

builds/azure-pipelines-release.yml

-173
This file was deleted.

src/Files.App (Package)/Files.Package.wapproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- Copyright (c) 2024 Files Community. Licensed under the MIT License. See the LICENSE. -->
2+
<!-- Copyright (c) Files Community. Licensed under the MIT License. -->
33
<Project ToolsVersion="Current" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
44
<PropertyGroup>
55
<ProjectGuid>8f60fd8e-1921-47d6-97b0-d26d7b3a4999</ProjectGuid>

0 commit comments

Comments
 (0)