Skip to content

Commit 285832d

Browse files
committed
Publish new release 2.8.0.47
1 parent 41e9976 commit 285832d

File tree

6 files changed

+20
-18
lines changed

6 files changed

+20
-18
lines changed

publish.cmd

+13-11
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
@echo off
22
cd %~dp0
3-
3+
SET ROOT=%~dp0
4+
set DRIVE=%~dd0
5+
set WINGET_SRC=%ROOT%..\winget-pkgs
46
for /f "usebackq" %%i in (`xsl -e -s src\Version\version.xsl src\Version\version.props`) do (
57
set VERSION=%%i
68
)
79

810
set WINGET=1
9-
set APPX_DROPS=D:\XmlNotepadReleases
10-
if not exist %APPX_DROPS% mkdir %APPX_DROPS%
1111

1212
echo ### Publishing version %VERSION%...
1313
where sed > nul 2>&1
@@ -36,20 +36,18 @@ if exist publish\XmlNotepadSetup.zip del publish\XmlNotepadSetup.zip
3636
pwsh -command "Compress-Archive -Path src\XmlNotepadSetup\bin\Release\* -DestinationPath publish\XmlNotepadSetup.zip"
3737

3838
if not EXIST src\XmlNotepadPackage\AppPackages\%VERSION%\XmlNotepadPackage_%VERSION%_Test\XmlNotepadPackage_%VERSION%_AnyCPU.msixbundle goto :noappx
39-
xcopy /y /s src\XmlNotepadPackage\AppPackages\%VERSION%\ %APPX_DROPS%\%VERSION%\
40-
if ERRORLEVEL 1 goto :eof
41-
copy /y src\XmlNotepadPackage\AppPackages\%VERSION%\index.html %APPX_DROPS%
42-
if ERRORLEVEL 1 goto :eof
4339

4440
echo Uploading ClickOnce installer to XmlNotepad
4541
AzurePublishClickOnce %~dp0publish downloads/XmlNotepad "%LOVETTSOFTWARE_STORAGE_CONNECTION_STRING%"
4642
if ERRORLEVEL 1 goto :eof
4743

4844
if "%WINGET%"=="0" goto :eof
4945

46+
if not exist %WINGET_SRC% goto :nowinget
47+
5048
:winget
5149
echo Syncing winget master branch
52-
pushd d:\git\lovettchris\winget-pkgs\manifests\m\Microsoft\XMLNotepad
50+
pushd %WINGET_SRC%\manifests\m\Microsoft\XMLNotepad
5351
git checkout master
5452
git pull
5553
git fetch upstream master
@@ -58,10 +56,10 @@ git push
5856
popd
5957

6058
echo Preparing winget package
61-
set TARGET=d:\git\lovettchris\winget-pkgs\manifests\m\Microsoft\XMLNotepad\%VERSION%\
59+
set TARGET=%WINGET_SRC%\manifests\m\Microsoft\XMLNotepad\%VERSION%\
6260
if not exist %TARGET% mkdir %TARGET%
6361
copy /y tools\Microsoft.XMLNotepad*.yaml %TARGET%
64-
wingetcreate update Microsoft.XMLNotepad --version %VERSION% -o d:\git\lovettchris\winget-pkgs -u https://github.com/microsoft/XmlNotepad/releases/download/%VERSION%/XmlNotepadPackage_%VERSION%_AnyCPU.msixbundle
62+
wingetcreate update Microsoft.XMLNotepad --version %VERSION% -o %WINGET_SRC% -u https://github.com/microsoft/XmlNotepad/releases/download/%VERSION%/XmlNotepadPackage_%VERSION%_AnyCPU.msixbundle
6563
if ERRORLEVEL 1 goto :eof
6664

6765
pushd %TARGET%
@@ -103,4 +101,8 @@ exit /b 1
103101

104102
:installfailed
105103
echo winget install failed
106-
exit /b 1
104+
exit /b 1
105+
106+
:nowinget
107+
echo Please clone [email protected]:lovettchris/winget-pkgs.git into %WINGET_SRC%
108+
ecit /b 1

src/Application/Application.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<TargetFrameworkProfile />
2424
<IsWebBootstrapper>true</IsWebBootstrapper>
2525
<NuGetPackageImportStamp></NuGetPackageImportStamp>
26-
<PublishUrl>d:\git\lovettchris\XmlNotepad\publish\</PublishUrl>
26+
<PublishUrl>$(MSBuildProjectDirectory)\..\..\publish\</PublishUrl>
2727
<Install>true</Install>
2828
<InstallFrom>Web</InstallFrom>
2929
<UpdateEnabled>true</UpdateEnabled>

src/Version/Version.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@
1515
// Build Number
1616
// Revision
1717
//
18-
[assembly: AssemblyVersion("2.8.0.46")]
19-
[assembly: AssemblyFileVersion("2.8.0.46")]
18+
[assembly: AssemblyVersion("2.8.0.47")]
19+
[assembly: AssemblyFileVersion("2.8.0.47")]

src/Version/Version.props

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<PropertyGroup>
4-
<ApplicationRevision>46</ApplicationRevision>
5-
<ApplicationVersion>2.8.0.46</ApplicationVersion>
4+
<ApplicationRevision>47</ApplicationRevision>
5+
<ApplicationVersion>2.8.0.47</ApplicationVersion>
66
</PropertyGroup>
77
</Project>

src/XmlNotepadPackage/Package.appxmanifest

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Package xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10" xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10" xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities" IgnorableNamespaces="uap rescap">
3-
<Identity Name="5632ff08-aa93-439a-b09f-677eb3664250" Publisher="CN=Chris Lovett, O=Chris Lovett, STREET=18606 201st Ave NE, L=Woodinville, S=WA, PostalCode=98077, C=US" Version="2.8.0.46" />
3+
<Identity Name="5632ff08-aa93-439a-b09f-677eb3664250" Publisher="CN=Chris Lovett, O=Chris Lovett, STREET=18606 201st Ave NE, L=Woodinville, S=WA, PostalCode=98077, C=US" Version="2.8.0.47" />
44
<Properties>
55
<DisplayName>XML Notepad</DisplayName>
66
<PublisherDisplayName>Microsoft Corporation</PublisherDisplayName>

src/XmlNotepadSetup/Product.wxs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
3-
<Product Id="*" Name="XmlNotepad" Language="1033" Version="2.8.0.46" Manufacturer="Lovett Software" UpgradeCode="14C1B5E8-3198-4AF2-B4BC-351017A109D3">
3+
<Product Id="*" Name="XmlNotepad" Language="1033" Version="2.8.0.47" Manufacturer="Lovett Software" UpgradeCode="14C1B5E8-3198-4AF2-B4BC-351017A109D3">
44
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />
55
<MajorUpgrade Schedule="afterInstallFinalize" DowngradeErrorMessage="A newer version of [ProductName] is already installed." AllowSameVersionUpgrades="yes" />
66
<MediaTemplate />

0 commit comments

Comments
 (0)