Skip to content

Commit 6aceda1

Browse files
committed
Improving build process
1 parent 621f032 commit 6aceda1

File tree

4 files changed

+18
-27
lines changed

4 files changed

+18
-27
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,20 @@ jobs:
2121
with:
2222
dotnet-version: 9.0.x
2323

24-
- name: Build
24+
- name: Update Version in manifest
25+
working-directory: './src/CmdPalRandomDadJokeExtension'
2526
run: |
26-
# Set the version number for the build based on the tag or fallback to the branch name
2727
$version = "${{github.ref_name}}.0" -replace '^v', ''
2828
29-
Write-Host "Setting version to $version"
30-
31-
dotnet build --configuration Release -p:Version="$version" -p:GenerateAppxPackageOnBuild=true
29+
$xmlFilePath = "Package.appxmanifest"
30+
[xml]$xml = Get-Content $xmlFilePath
31+
$xml.Package.Identity.Version = $version
32+
$xml.Save($xmlFilePath)
33+
Write-Output "Version updated to $version in $xmlFilePath"
34+
35+
- name: Build
36+
run: |
37+
dotnet build --configuration Release -p:GenerateAppxPackageOnBuild=true
3238
3339
- name: Move misx Packages
3440
run: |

CmdPalExtensions.sln

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{827E0CD3-B72
77
EndProject
88
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CmdPalRandomDadJokeExtension", "src\CmdPalRandomDadJokeExtension\CmdPalRandomDadJokeExtension.csproj", "{CDDFFDE5-89FC-4FC3-8FE3-70366047A0D6}"
99
EndProject
10-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CmdPalNotionExtension", "src\CmdPalNotionExtension\CmdPalNotionExtension.csproj", "{CF24499B-D6EB-4B45-9C4B-60D4A93F8E98}"
11-
EndProject
1210
Global
1311
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1412
Debug|Any CPU = Debug|Any CPU
@@ -31,24 +29,11 @@ Global
3129
{CDDFFDE5-89FC-4FC3-8FE3-70366047A0D6}.Release|x64.Build.0 = Release|x64
3230
{CDDFFDE5-89FC-4FC3-8FE3-70366047A0D6}.Release|x86.ActiveCfg = Release|x64
3331
{CDDFFDE5-89FC-4FC3-8FE3-70366047A0D6}.Release|x86.Build.0 = Release|x64
34-
{CF24499B-D6EB-4B45-9C4B-60D4A93F8E98}.Debug|Any CPU.ActiveCfg = Debug|x64
35-
{CF24499B-D6EB-4B45-9C4B-60D4A93F8E98}.Debug|Any CPU.Build.0 = Debug|x64
36-
{CF24499B-D6EB-4B45-9C4B-60D4A93F8E98}.Debug|x64.ActiveCfg = Debug|x64
37-
{CF24499B-D6EB-4B45-9C4B-60D4A93F8E98}.Debug|x64.Build.0 = Debug|x64
38-
{CF24499B-D6EB-4B45-9C4B-60D4A93F8E98}.Debug|x86.ActiveCfg = Debug|x64
39-
{CF24499B-D6EB-4B45-9C4B-60D4A93F8E98}.Debug|x86.Build.0 = Debug|x64
40-
{CF24499B-D6EB-4B45-9C4B-60D4A93F8E98}.Release|Any CPU.ActiveCfg = Release|x64
41-
{CF24499B-D6EB-4B45-9C4B-60D4A93F8E98}.Release|Any CPU.Build.0 = Release|x64
42-
{CF24499B-D6EB-4B45-9C4B-60D4A93F8E98}.Release|x64.ActiveCfg = Release|x64
43-
{CF24499B-D6EB-4B45-9C4B-60D4A93F8E98}.Release|x64.Build.0 = Release|x64
44-
{CF24499B-D6EB-4B45-9C4B-60D4A93F8E98}.Release|x86.ActiveCfg = Release|x64
45-
{CF24499B-D6EB-4B45-9C4B-60D4A93F8E98}.Release|x86.Build.0 = Release|x64
4632
EndGlobalSection
4733
GlobalSection(SolutionProperties) = preSolution
4834
HideSolutionNode = FALSE
4935
EndGlobalSection
5036
GlobalSection(NestedProjects) = preSolution
5137
{CDDFFDE5-89FC-4FC3-8FE3-70366047A0D6} = {827E0CD3-B72D-47B6-A68D-7590B98EB39B}
52-
{CF24499B-D6EB-4B45-9C4B-60D4A93F8E98} = {827E0CD3-B72D-47B6-A68D-7590B98EB39B}
5338
EndGlobalSection
5439
EndGlobal

src/CmdPalNotionExtension/Package.appxmanifest

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
IgnorableNamespaces="uap uap3 rescap">
1010

1111
<Identity
12-
Name="CmdPalNotionExtension"
13-
Publisher="CN=Michael Jolley, O=Michael Jolley, L=Birmingham, S=Alabama, C=US"
12+
Name="MichaelJolley.CmdPalNotionExtension"
13+
Publisher="CN=Michael Jolley, O=Michael Jolley, L=Odenville, S=Alabama, C=US"
1414
Version="0.0.1.0" />
1515

1616
<Properties>
@@ -34,7 +34,7 @@
3434
EntryPoint="$targetentrypoint$">
3535
<uap:VisualElements
3636
DisplayName="Notion extension for Command Palette"
37-
Description="Notion extension for Command Palette"
37+
Description="Command Palette extension for Notion"
3838
BackgroundColor="transparent"
3939
Square150x150Logo="Assets\Square150x150Logo.png"
4040
Square44x44Logo="Assets\Square44x44Logo.png">
@@ -53,8 +53,8 @@
5353
<uap3:AppExtension Name="com.microsoft.commandpalette"
5454
Id="PG-SP-ID"
5555
PublicFolder="Public"
56-
DisplayName="Random Dad Joke"
57-
Description="Random Dad Joke">
56+
DisplayName="Notion"
57+
Description="Manage Notion pages and databases from Command Palette">
5858
<uap3:Properties>
5959
<CmdPalProvider>
6060
<Activation>

src/CmdPalRandomDadJokeExtension/Package.appxmanifest

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
Executable="$targetnametoken$.exe"
3434
EntryPoint="$targetentrypoint$">
3535
<uap:VisualElements
36-
DisplayName="Random Dad Joke extension for Command Palette"
36+
DisplayName="Random Dad Jokes"
3737
Description="Display a random dad joke in Command Palette"
3838
BackgroundColor="transparent"
3939
Square150x150Logo="Assets\Square300x300Logo.png"
@@ -60,7 +60,7 @@
6060
Id="PG-SP-ID"
6161
PublicFolder="Public"
6262
DisplayName="Random Dad Joke"
63-
Description="Random Dad Joke">
63+
Description="Random dad jokes for Command Palette">
6464
<uap3:Properties>
6565
<CmdPalProvider>
6666
<Activation>

0 commit comments

Comments
 (0)