28 Commits

Author SHA1 Message Date
f4ac00d29f v0.11.6 2026-03-13 09:38:06 +01:00
b45ef12f5a Merge pull request #41 from alterware/dependabot/cargo/reqwest-0.13.2
build(deps): bump reqwest from 0.12.28 to 0.13.2
2026-03-11 14:35:42 +01:00
2b61682464 Merge pull request #40 from alterware/dependabot/github_actions/taiki-e/upload-rust-binary-action-1.28.0
build(deps): bump taiki-e/upload-rust-binary-action from 1.27.0 to 1.28.0
2026-03-11 14:35:34 +01:00
7928e4dbfb Merge pull request #42 from alterware/dependabot/cargo/indicatif-0.18.4
build(deps): bump indicatif from 0.18.3 to 0.18.4
2026-03-11 14:35:24 +01:00
863b9266b8 Merge pull request #43 from alterware/dependabot/cargo/serial_test-3.4.0
build(deps): bump serial_test from 3.2.0 to 3.4.0
2026-03-11 14:35:15 +01:00
cb2a278b14 Merge pull request #44 from alterware/dependabot/cargo/futures-util-0.3.32
build(deps): bump futures-util from 0.3.31 to 0.3.32
2026-03-11 14:35:07 +01:00
fb18d179b0 Merge pull request #39 from mxve/main
check http status code
2026-03-11 14:23:35 +01:00
dependabot[bot]
cc77ef778e build(deps): bump futures-util from 0.3.31 to 0.3.32
Bumps [futures-util](https://github.com/rust-lang/futures-rs) from 0.3.31 to 0.3.32.
- [Release notes](https://github.com/rust-lang/futures-rs/releases)
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.31...0.3.32)

---
updated-dependencies:
- dependency-name: futures-util
  dependency-version: 0.3.32
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-01 14:38:30 +00:00
dependabot[bot]
a3cb1bd6aa build(deps): bump serial_test from 3.2.0 to 3.4.0
Bumps [serial_test](https://github.com/palfrey/serial_test) from 3.2.0 to 3.4.0.
- [Release notes](https://github.com/palfrey/serial_test/releases)
- [Commits](https://github.com/palfrey/serial_test/compare/v3.2.0...v3.4.0)

---
updated-dependencies:
- dependency-name: serial_test
  dependency-version: 3.4.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-01 14:38:20 +00:00
dependabot[bot]
24c35c577f build(deps): bump indicatif from 0.18.3 to 0.18.4
Bumps [indicatif](https://github.com/console-rs/indicatif) from 0.18.3 to 0.18.4.
- [Release notes](https://github.com/console-rs/indicatif/releases)
- [Commits](https://github.com/console-rs/indicatif/compare/0.18.3...0.18.4)

---
updated-dependencies:
- dependency-name: indicatif
  dependency-version: 0.18.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-01 14:38:11 +00:00
dependabot[bot]
ff4d75bc7c build(deps): bump reqwest from 0.12.28 to 0.13.2
Bumps [reqwest](https://github.com/seanmonstar/reqwest) from 0.12.28 to 0.13.2.
- [Release notes](https://github.com/seanmonstar/reqwest/releases)
- [Changelog](https://github.com/seanmonstar/reqwest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/seanmonstar/reqwest/compare/v0.12.28...v0.13.2)

---
updated-dependencies:
- dependency-name: reqwest
  dependency-version: 0.13.2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-01 14:38:01 +00:00
dependabot[bot]
0b700bd825 build(deps): bump taiki-e/upload-rust-binary-action
Bumps [taiki-e/upload-rust-binary-action](https://github.com/taiki-e/upload-rust-binary-action) from 1.27.0 to 1.28.0.
- [Release notes](https://github.com/taiki-e/upload-rust-binary-action/releases)
- [Changelog](https://github.com/taiki-e/upload-rust-binary-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/taiki-e/upload-rust-binary-action/compare/v1.27.0...v1.28.0)

---
updated-dependencies:
- dependency-name: taiki-e/upload-rust-binary-action
  dependency-version: 1.28.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-01 14:37:35 +00:00
c8d8964a33 check http status code
prevent fnaf morphing
2026-02-08 08:07:38 +01:00
4f5f1bc1a5 Merge pull request #31 from alterware/dependabot/github_actions/actions/checkout-6
build(deps): bump actions/checkout from 5 to 6
2026-02-02 10:44:22 +01:00
dependabot[bot]
c455278ca6 build(deps): bump actions/checkout from 5 to 6
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-02 09:42:22 +00:00
86a3587aa7 Merge pull request #32 from alterware/dependabot/cargo/static_vcruntime-3.0.0
build(deps): bump static_vcruntime from 2.0.0 to 3.0.0
2026-02-02 10:40:37 +01:00
83d353ffba Merge pull request #30 from alterware/dependabot/github_actions/actions/cache-5
build(deps): bump actions/cache from 4 to 5
2026-02-02 10:40:21 +01:00
902fc70b56 Merge pull request #33 from alterware/dependabot/cargo/reqwest-0.12.28
build(deps): bump reqwest from 0.12.24 to 0.12.28
2026-02-02 10:40:11 +01:00
9a9153fc93 Merge pull request #34 from alterware/dependabot/cargo/indicatif-0.18.3
build(deps): bump indicatif from 0.18.0 to 0.18.3
2026-02-02 10:40:03 +01:00
c4425b786e Merge pull request #35 from alterware/dependabot/cargo/openssl-0.10.75
build(deps): bump openssl from 0.10.74 to 0.10.75
2026-02-02 10:39:55 +01:00
3d609ff570 Merge pull request #38 from alterware/dependabot/github_actions/taiki-e/create-gh-release-action-1.9.2
build(deps): bump taiki-e/create-gh-release-action from 1.9.1 to 1.9.2
2026-02-02 10:39:46 +01:00
dependabot[bot]
6be4c1a8e5 build(deps): bump taiki-e/create-gh-release-action from 1.9.1 to 1.9.2
Bumps [taiki-e/create-gh-release-action](https://github.com/taiki-e/create-gh-release-action) from 1.9.1 to 1.9.2.
- [Release notes](https://github.com/taiki-e/create-gh-release-action/releases)
- [Changelog](https://github.com/taiki-e/create-gh-release-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/taiki-e/create-gh-release-action/compare/v1.9.1...v1.9.2)

---
updated-dependencies:
- dependency-name: taiki-e/create-gh-release-action
  dependency-version: 1.9.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-01 14:37:11 +00:00
dependabot[bot]
f1cd1f225d build(deps): bump openssl from 0.10.74 to 0.10.75
Bumps [openssl](https://github.com/rust-openssl/rust-openssl) from 0.10.74 to 0.10.75.
- [Release notes](https://github.com/rust-openssl/rust-openssl/releases)
- [Commits](https://github.com/rust-openssl/rust-openssl/compare/openssl-v0.10.74...openssl-v0.10.75)

---
updated-dependencies:
- dependency-name: openssl
  dependency-version: 0.10.75
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-01 14:24:08 +00:00
dependabot[bot]
ec221ed543 build(deps): bump indicatif from 0.18.0 to 0.18.3
Bumps [indicatif](https://github.com/console-rs/indicatif) from 0.18.0 to 0.18.3.
- [Release notes](https://github.com/console-rs/indicatif/releases)
- [Commits](https://github.com/console-rs/indicatif/compare/0.18.0...0.18.3)

---
updated-dependencies:
- dependency-name: indicatif
  dependency-version: 0.18.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-01 14:23:59 +00:00
dependabot[bot]
b8cec3a404 build(deps): bump reqwest from 0.12.24 to 0.12.28
Bumps [reqwest](https://github.com/seanmonstar/reqwest) from 0.12.24 to 0.12.28.
- [Release notes](https://github.com/seanmonstar/reqwest/releases)
- [Changelog](https://github.com/seanmonstar/reqwest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/seanmonstar/reqwest/compare/v0.12.24...v0.12.28)

---
updated-dependencies:
- dependency-name: reqwest
  dependency-version: 0.12.28
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-01 14:23:49 +00:00
dependabot[bot]
a17e47b97d build(deps): bump static_vcruntime from 2.0.0 to 3.0.0
Bumps [static_vcruntime](https://github.com/ChrisDenton/static_vcruntime) from 2.0.0 to 3.0.0.
- [Commits](https://github.com/ChrisDenton/static_vcruntime/compare/2.0...3.0)

---
updated-dependencies:
- dependency-name: static_vcruntime
  dependency-version: 3.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-01 14:23:36 +00:00
dependabot[bot]
24d66aab75 build(deps): bump actions/cache from 4 to 5
Bumps [actions/cache](https://github.com/actions/cache) from 4 to 5.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-01 14:23:17 +00:00
alterware
4e7f2fa03b chore: remove us-cdn 2025-11-30 17:43:43 +01:00
7 changed files with 452 additions and 197 deletions

View File

@@ -15,7 +15,7 @@ jobs:
os: ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable
@@ -23,7 +23,7 @@ jobs:
target: ${{ matrix.target }}
- name: Cache dependencies
uses: actions/cache@v4
uses: actions/cache@v5
with:
path: |
~/.cargo/registry
@@ -46,7 +46,7 @@ jobs:
os: ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable
@@ -54,7 +54,7 @@ jobs:
target: ${{ matrix.target }}
- name: Cache dependencies
uses: actions/cache@v4
uses: actions/cache@v5
with:
path: |
~/.cargo/registry
@@ -77,7 +77,7 @@ jobs:
os: ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable
@@ -86,7 +86,7 @@ jobs:
components: rustfmt, clippy
- name: Cache dependencies
uses: actions/cache@v4
uses: actions/cache@v5
with:
path: |
~/.cargo/registry

View File

@@ -9,8 +9,8 @@ jobs:
create-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: taiki-e/create-gh-release-action@v1.9.1
- uses: actions/checkout@v6
- uses: taiki-e/create-gh-release-action@v1.9.2
with:
draft: true
token: ${{ secrets.GITHUB_TOKEN }}
@@ -29,8 +29,8 @@ jobs:
os: windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v5
- uses: taiki-e/upload-rust-binary-action@v1.27.0
- uses: actions/checkout@v6
- uses: taiki-e/upload-rust-binary-action@v1.28.0
with:
target: ${{ matrix.target }}
bin: alterware-launcher

600
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,6 @@
[package]
name = "alterware-launcher"
version = "0.11.4"
version = "0.11.6"
edition = "2021"
build = "res/build.rs"
@@ -18,7 +18,7 @@ rand = "0.9"
semver = "1.0"
colored = "3.0"
once_cell = "1.21"
reqwest = { version = "0.12", features = ["stream"] }
reqwest = { version = "0.13", features = ["stream"] }
futures-util = "0.3"
futures = "0.3"
indicatif = "0.18"
@@ -37,11 +37,11 @@ self-replace = "1.5"
[build-dependencies]
winresource = "0.1"
static_vcruntime = "2.0"
static_vcruntime = "3.0"
[dev-dependencies]
strip-ansi-escapes = "0.2"
serial_test = "3.2"
serial_test = "3.4"
[package.metadata.winresource]
OriginalFilename = "alterware-launcher.exe"

View File

@@ -12,10 +12,7 @@ pub const GH_OWNER: &str = "alterware";
pub const GH_REPO: &str = "alterware-launcher";
pub const DEFAULT_MASTER: &str = "https://cdn.alterware.ovh";
pub const CDN_HOSTS: [Server; 2] = [
Server::new("cdn.alterware.ovh"),
Server::new("us-cdn.alterware.ovh"),
];
pub const CDN_HOSTS: [Server; 1] = [Server::new("cdn.alterware.ovh")];
pub static USER_AGENT: Lazy<String> = Lazy::new(|| {
format!(

View File

@@ -36,6 +36,10 @@ pub async fn download_file_progress(
format!("Failed to GET from '{url}'")
})?;
if !res.status().is_success() {
return Err(format!("Request failed with status: {}", res.status()));
}
let total_size = res.content_length().unwrap_or(size);
debug!("Download size: {}", misc::human_readable_bytes(total_size));
pb.set_length(total_size);
@@ -93,6 +97,10 @@ pub async fn get_body(url: &str) -> Result<Vec<u8>, String> {
debug!("{} {url}", res.status());
if !res.status().is_success() {
return Err(format!("Request failed with status: {}", res.status()));
}
res.bytes()
.await
.map(|b| b.to_vec())

View File

@@ -93,7 +93,7 @@ pub async fn run(update_only: bool, prerelease: Option<bool>) {
"alterware-launcher.exe"
};
http_async::download_file(
if let Err(e) = http_async::download_file(
&format!(
"{}/download/{}",
github::download_url(GH_OWNER, GH_REPO, None),
@@ -102,7 +102,11 @@ pub async fn run(update_only: bool, prerelease: Option<bool>) {
&file_path,
)
.await
.unwrap();
{
error!("Self-update download failed: {e}");
crate::println_error!("Self-update failed ({e}), skipping update.");
return;
}
if !file_path.exists() {
crate::println_error!("Failed to download launcher update.");