Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/releasing.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Releasing PLAY.

## Versioning before 1.0
## Versioning

- Publish a minor release for a meaningful batch of user-visible capabilities or behavior changes.
- Publish a patch release for corrections to the latest supported release.
Expand Down Expand Up @@ -38,7 +38,7 @@ Partner Center identity used by the package:
- Package/Properties/PublisherDisplayName: `Dev Jam Studio`
- Store ID: `9NXXT91JCTHX`

The Store package version is derived from PLAY.'s semantic version by adding one to the semantic major and reserving the fourth component for Store use. For example, PLAY. `0.16.0` produces package version `1.16.0.0`, and PLAY. `1.0.0` produces `2.0.0.0`.
The Store package keeps PLAY.'s semantic version unchanged in its first three components and reserves the fourth component for Store use. For example, PLAY. `1.16.0` produces package version `1.16.0.0`. Store builds require PLAY. `1.x` or later because Microsoft package versions cannot start with zero.

Build locally on Windows with the Windows SDK installed:

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "playdot-player",
"version": "0.16.0",
"version": "1.16.0",
"private": true,
"workspaces": [
"website"
Expand Down
17 changes: 10 additions & 7 deletions scripts/build-msix.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -26,24 +26,27 @@ if ([string]::IsNullOrWhiteSpace($Version)) {
}

if ($Version -notmatch '^(\d+)\.(\d+)\.(\d+)$') {
throw "Version '$Version' must contain exactly three numeric components, such as 0.16.0."
throw "Version '$Version' must contain exactly three numeric components, such as 1.16.0."
}

$appMajor = [int]$Matches[1]
$appMinor = [int]$Matches[2]
$appPatch = [int]$Matches[3]
$packageMajor = $appMajor + 1

foreach ($component in @($packageMajor, $appMinor, $appPatch)) {
if ($appMajor -lt 1) {
throw "Microsoft Store package versions require a non-zero major version. Use PLAY. 1.x or later."
}

foreach ($component in @($appMajor, $appMinor, $appPatch)) {
if ($component -lt 0 -or $component -gt 65535) {
throw "Version '$Version' cannot be mapped to a valid Microsoft Store package version."
}
}

# The Store requires a four-part package version whose first component is non-zero
# and reserves the fourth component. Offset the semantic major by one so pre-1.0
# PLAY. versions remain monotonic: 0.16.0 -> 1.16.0.0, 1.0.0 -> 2.0.0.0.
$packageVersion = "$packageMajor.$appMinor.$appPatch.0"
# Keep PLAY.'s public semantic version identical to the first three MSIX
# components. Microsoft requires a four-part package version and reserves
# the fourth component, so PLAY. 1.16.0 maps directly to MSIX 1.16.0.0.
$packageVersion = "$appMajor.$appMinor.$appPatch.0"

if (-not $SkipBuild) {
& bun run setup-lib
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "playdot-player"
version = "0.16.0"
version = "1.16.0"
description = "Windows-first video player with Tauri and libmpv"
authors = ["playdot player"]
edition = "2021"
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "https://schema.tauri.app/config/2",
"productName": "PLAY.",
"mainBinaryName": "playdot-player",
"version": "0.16.0",
"version": "1.16.0",
"identifier": "com.playdot.player",
"build": {
"beforeDevCommand": "bun run dev",
Expand Down
Loading