Skip to content

Commit

Permalink
chore: update api token
Browse files Browse the repository at this point in the history
  • Loading branch information
Commander07 committed Feb 20, 2024
1 parent 591b648 commit f713888
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 107 deletions.
32 changes: 0 additions & 32 deletions .github/workflows/appbundle.yml

This file was deleted.

2 changes: 2 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ jobs:
sudo apt-get install -y gcc pkg-config libglib2.0-dev libgtk-3-dev libssl-dev libjavascriptcoregtk-4.1-dev libsoup-3.0-dev libwebkit2gtk-4.1-dev
- name: Build
run: cargo build --verbose --release
- name: Strip debug info
run: strip target/release/installer
- name: capture build artifacts windows
if: ${{ matrix.os == 'windows-2022' }}
uses: actions/upload-artifact@v2
Expand Down
40 changes: 0 additions & 40 deletions .github/workflows/rust_debug.yml

This file was deleted.

5 changes: 1 addition & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@ build = "build.rs"
[profile.release]
opt-level = "s"
lto = "fat"

[profile.dev]
opt-level = "s"
lto = "fat"
strip = true


[dependencies]
Expand Down
21 changes: 0 additions & 21 deletions scripts/build-appbundle.sh

This file was deleted.

10 changes: 1 addition & 9 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,6 @@ async fn get_cached(http_client: &HttpClient, url: String) -> Result<CachedRespo
}
}

#[cfg(debug_assertions)]
fn build_http_client() -> HttpClient {
HttpClient::builder()
.redirect_policy(RedirectPolicy::Limit(5))
Expand All @@ -174,14 +173,7 @@ fn build_http_client() -> HttpClient {
.build()
.unwrap()
}
#[cfg(not(debug_assertions))]
fn build_http_client() -> HttpClient {
HttpClient::builder()
.redirect_policy(RedirectPolicy::Limit(5))
.default_headers(&[("User-Agent", "wynncraft-overhaul/installer/0.1.0")])
.build()
.unwrap()
}

#[async_trait]
trait Downloadable {
async fn download(
Expand Down
2 changes: 1 addition & 1 deletion src/pat
Original file line number Diff line number Diff line change
@@ -1 +1 @@
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
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

0 comments on commit f713888

Please sign in to comment.