Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
dawoe committed Jun 29, 2023
2 parents f316dd3 + e070fac commit 7554211
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 16 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ When you only need the source url of the iframe in the embed code you can do the

## Changelog

### 12.0.0

- Support for Umbraco 12

### 11.0.0

- Support for Umbraco 11
Expand Down
8 changes: 6 additions & 2 deletions Utilities/CreateNugetPackages.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,15 @@ $directoryBuildProps = [xml](Get-Content -Path "$SourceDir\Directory.Build.props
$version = $directoryBuildProps.Project.PropertyGroup.VersionPrefix;
Write-Host "Package version: $version";

$dateTime = get-date -Format "yyyyMMddhhmmss"
$dateTime = get-date -Format "yyyyMMddHHmmss"

Write-Host "Version suffix $dateTime"

dotnet pack $SourceDir\$PackageName.sln -c Debug -o $TestSitesFolder\nuget --version-suffix "$dateTime"
if (Test-Path -Path $TestSitesFolder\nuget) {
Remove-Item -LiteralPath $TestSitesFolder\nuget -Force -Recurse
}

dotnet pack $SourceDir\$SolutionName.sln -c Debug -o $TestSitesFolder\nuget --version-suffix "$dateTime"

cd "$TestSitesFolder\$TestProjectName"

Expand Down
12 changes: 7 additions & 5 deletions Utilities/SetupTestSite.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
Write-Host $CurrentDir

Write-Host "Installing Umbraco templates"
dotnet new install Umbraco.Templates
dotnet new --install Umbraco.Templates

Write-Host "Creating Umbraco site"
cd $Destination
dotnet new umbraco -n $ProjectName --development-database-type SQLite --version $CmsVersion --friendly-name "Test admin" --email "[email protected]" --password "1234567890"

cd "$Destination\$ProjectName"

dotnet add package Umbraco.TheStarterKit --version $CmsVersion --source https://api.nuget.org/v3/index.json
dotnet add package Umbraco.TheStarterKit --version $StarterKitVersion --source https://api.nuget.org/v3/index.json

dotnet build

Expand All @@ -37,7 +37,7 @@
$newNode.InnerText = '../Nuget'
$propertyGroup.Node.AppendChild($newNode)
$xml.Save("$Destination\$ProjectName\$ProjectName.csproj")

cd $CurrentDir
}

Expand All @@ -47,8 +47,10 @@ $CurrentDir = Split-Path $MyInvocation.MyCommand.Path

Write-Host "Cleaning up existing test site"

if (Test-Path -Path $TestSitesFolder) {
Remove-Item -LiteralPath $TestSitesFolder -Force -Recurse
$TestSitePath = "$TestSitesFolder\$TestProjectName"

if (Test-Path -Path $TestSitePath) {
Remove-Item -LiteralPath $TestSitePath -Force -Recurse
}

New-Item -Path $RootDir -Name $TestSitesFolderName -ItemType "directory"
Expand Down
6 changes: 4 additions & 2 deletions Utilities/Variables.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
$RootDir = Split-Path -Path $CurrentDir -Parent
$TestSitesFolderName = "testsites"
$TestSitesFolder = "$RootDir\$TestSitesFolderName"
$TestProjectName = "OEmbedPickerSite"
$TestProjectName = "V12"
$PackageName = "Dawoe.OEmbedPickerPropertyEditor"
$SolutionName = "Dawoe.OEmbedPickerPropertyEditor"
$SourceDir = "$RootDir\src"
$UmbracoVersion = "11.0.0"
$UmbracoVersion = "12.0.0"
$StarterKitVersion = "11.0.0"
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
image: Visual Studio 2022

# Version format
version: 11.0.0.{build}
version: 12.0.0.{build}

branches:
only:
Expand Down
10 changes: 5 additions & 5 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Umbraco.Cms.Web.Website" Version="[11.0.0,12.0.0)" />
<PackageReference Include="Umbraco.Cms.Web.BackOffice" Version="[11.0.0,12.0.0)" />
<PackageReference Include="Umbraco.Cms.Web.Website" Version="[12.0.0,13.0.0)" />
<PackageReference Include="Umbraco.Cms.Web.BackOffice" Version="[12.0.0,13.0.0)" />
</ItemGroup>

<ItemGroup>
Expand All @@ -27,9 +27,9 @@
<RepositoryType>git</RepositoryType>
<Copyright>Copyright &amp;#169; Dave Woestenborghs and contributors.</Copyright>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<AssemblyVersion>11.0.0</AssemblyVersion>
<VersionPrefix>11.0.0</VersionPrefix>
<InformationalVersion>11.0.0</InformationalVersion>
<AssemblyVersion>12.0.0</AssemblyVersion>
<VersionPrefix>12.0.0</VersionPrefix>
<InformationalVersion>12.0.0</InformationalVersion>
</PropertyGroup>


Expand Down
2 changes: 1 addition & 1 deletion umbraco-marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
"PackageType": "Package",
"PackagesByAuthor": [ "Our.Umbraco.MultilanguageTextbox" ],
"Tags": [ "embed", "media" ],
"Title": "OEmbed Picker Property Editorv"
"Title": "OEmbed Picker Property Editor"
}

0 comments on commit 7554211

Please sign in to comment.