Skip to content

Commit 17a686e

Browse files
update releast build for flatpak
1 parent 28b35b3 commit 17a686e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,7 @@ jobs:
8181
8282
- name: Build FlatPak
8383
run: |
84-
sudo apt install flatpak
85-
sudo apt install flatpak-builder
84+
sudo apt install flatpak flatpak-builder python3 python3-aiohttp python3-toml
8685
flatpak remote-add --if-not-exists --user flathub https://dl.flathub.org/repo/flathub.flatpakrepo
8786
make linux-flatpak
8887

minesweeper-relm4/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ edition = "2021"
55
license = "Apache-2.0 OR MIT"
66

77
[dependencies]
8-
relm4 = "0.8"
9-
relm4-components = "0.8"
8+
relm4 = "0.9"
9+
relm4-components = "0.9"
1010
minesweeper = { path = "../minesweeper" }
1111
serde = { version = "1.0", features = ["derive"] }
1212
chrono = { version = "0.4", features = ["serde"] }

minesweeper/src/history.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ fn persist_win(win: Win) -> anyhow::Result<()> {
7777
.write(true)
7878
.read(true)
7979
.create(true)
80+
.truncate(true)
8081
.open(get_save_file()?)?;
8182
let mut history: WinHistory = from_read(&stats_file).unwrap_or_else(|err| {
8283
eprintln!("Failed to read stats file: {err}. Creating new WinHistory");

0 commit comments

Comments
 (0)