mirror of
https://github.com/screentinker/screentinker.git
synced 2026-06-15 02:33:15 -06:00
fix(bump-version): do not rewrite the tizen config.xml XML declaration (#77)
bump-version.sh matched `<?xml version="1.0" ...?>` - the XML format version, which has a leading space before version= just like the widget attribute - and rewrote it to the app version, producing invalid XML that breaks the Tizen .wgt build: 'XML version "X.Y.Z" is not supported, only XML 1.0 is supported'. (CI did not catch it because the no-Tizen-CLI build path just zips the files without validating the XML.) - bump-version.sh: skip the `<?xml` declaration line in the tizen version sed. - tizen/config.xml: restore the declaration to version="1.0" (prior bumps had corrupted it to 1.8.2). The widget version and tizen:application required_version are still updated / left alone correctly (verified with a dummy bump + an XML parse). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
3545830ea6
commit
53e32d31e2
|
|
@ -42,10 +42,12 @@ sed -i -E "s/(versionName[[:space:]]*=[[:space:]]*)\"[0-9.]+\"/\1\"$NEW\"/" andr
|
|||
CODE="$(grep -oE 'versionCode[[:space:]]*=[[:space:]]*[0-9]+' android/app/build.gradle.kts | grep -oE '[0-9]+$')"
|
||||
sed -i -E "s/(versionCode[[:space:]]*=[[:space:]]*)[0-9]+/\1$((CODE + 1))/" android/app/build.gradle.kts
|
||||
|
||||
# 4) tizen widget version. Leading-space guard targets the widget's version="..."
|
||||
# attribute and NOT tizen:application required_version="..." (no space before
|
||||
# "version" there - it's "...d_version").
|
||||
sed -i -E "s/([[:space:]]version=\")[0-9][^\"]*(\")/\1${NEW}\2/" tizen/config.xml
|
||||
# 4) tizen widget version. Skip the <?xml ...?> declaration line - its
|
||||
# version="1.0" is the XML FORMAT version, not the app version, and it also
|
||||
# has a leading space before version= so the guard below would otherwise hit
|
||||
# it (issue #77). The leading-space guard still excludes tizen:application
|
||||
# required_version="..." (that's "...d_version", no preceding space).
|
||||
sed -i -E "/^<\?xml/! s/([[:space:]]version=\")[0-9][^\"]*(\")/\1${NEW}\2/" tizen/config.xml
|
||||
|
||||
# 5) commit + annotated tag (no push)
|
||||
git add VERSION server/package.json server/package-lock.json android/app/build.gradle.kts tizen/config.xml
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?xml version="1.8.2" encoding="UTF-8"?>
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<widget xmlns="http://www.w3.org/ns/widgets" xmlns:tizen="http://tizen.org/ns/widgets"
|
||||
id="http://screentinker.com/player" version="1.8.2" viewmodes="maximized">
|
||||
<tizen:application id="ScrnTinkr1.ScreenTinker" package="ScrnTinkr1" required_version="2.4"/>
|
||||
|
|
|
|||
Loading…
Reference in a new issue