Skip to content

Commit

Permalink
Release v0.24.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mtkennerly committed Jun 16, 2024
1 parent ec8d4de commit 80977e9
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ body:
label: Ludusavi version
description: If you're not using the latest version, please update and make sure the problem still occurs.
options:
- v0.24.1
- v0.24.0
- v0.23.0
- v0.22.0
Expand All @@ -16,7 +17,6 @@ body:
- v0.18.2
- v0.18.1
- v0.18.0
- v0.17.1
- Other
validations:
required: true
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Unreleased
## v0.24.1 (2024-06-15)

* Fixed:
* Symlinks were incorrectly traversed when applying redirects.
Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Also install the Crowdin CLI manually.
* Update the translation percentages in src/lang.rs
* Run `cargo build` to update the version in Cargo.lock
* Add the new version to `.github/ISSUE_TEMPLATE/*.yaml`.
* Update the README if necessary for any new features.
* Update the documentation if necessary for any new features.
Check for any new content that needs to be uncommented (`<!--`).
* Run:
```
Expand All @@ -81,7 +81,7 @@ Also install the Crowdin CLI manually.
```
* Run: `cargo publish`
* Create a release on GitHub and attach the workflow build artifacts
(plus a zipped copy of `dist/*-legal.txt`).
(plus `dist/*-legal.zip`).

#### Publish
Commands assume you've set `VERSION=$(invoke version)`.
Expand Down
2 changes: 1 addition & 1 deletion 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 Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ludusavi"
version = "0.24.0"
version = "0.24.1"
authors = ["mtkennerly <[email protected]>"]
edition = "2021"
description = "Game save backup tool"
Expand Down
3 changes: 2 additions & 1 deletion assets/com.github.mtkennerly.ludusavi.metainfo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,14 @@
</keywords>
<screenshots>
<screenshot type="default">
<image type="source">https://raw.githubusercontent.com/mtkennerly/ludusavi/v0.24.0/docs/sample-gui-linux.png</image>
<image type="source">https://raw.githubusercontent.com/mtkennerly/ludusavi/v0.24.1/docs/sample-gui-linux.png</image>
<caption>Graphical user interface</caption>
</screenshot>
</screenshots>
<content_rating type="oars-1.1" />
<launchable type="desktop-id">com.github.mtkennerly.ludusavi.desktop</launchable>
<releases>
<release version="0.24.1" date="2024-06-15"/>
<release version="0.24.0" date="2024-06-08"/>
<release version="0.23.0" date="2024-04-27"/>
<release version="0.22.0" date="2023-12-26"/>
Expand Down
4 changes: 4 additions & 0 deletions docs/schema/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,10 @@ definitions:
type: string
enum:
- fil-PH
- description: Finnish
type: string
enum:
- fi-FI
- description: French
type: string
enum:
Expand Down
16 changes: 11 additions & 5 deletions tasks.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import os
import re
import shutil
import zipfile
from pathlib import Path

from invoke import task
Expand All @@ -22,14 +23,19 @@ def version(ctx):
@task
def legal(ctx):
version = get_version(ctx)
legal_path = ROOT / "dist" / f"ludusavi-v{version}-legal.txt"
txt_name = f"ludusavi-v{version}-legal.txt"
txt_path = ROOT / "dist" / txt_name
try:
ctx.run(f'cargo lichking bundle --file "{legal_path}"', hide=True)
ctx.run(f'cargo lichking bundle --file "{txt_path}"', hide=True)
except Exception:
pass
legal_content = legal_path.read_text("utf8")
normalized = re.sub(r"C:\\Users\\[^\\]+", "~", legal_content)
legal_path.write_text(normalized, "utf8")
raw = txt_path.read_text("utf8")
normalized = re.sub(r"C:\\Users\\[^\\]+", "~", raw)
txt_path.write_text(normalized, "utf8")

zip_path = ROOT / "dist" / f"ludusavi-v{version}-legal.zip"
with zipfile.ZipFile(zip_path, "w", zipfile.ZIP_DEFLATED) as zip:
zip.write(txt_path, txt_name)


@task
Expand Down

0 comments on commit 80977e9

Please sign in to comment.