Skip to content

Commit

Permalink
Merge pull request #45 from Manta-Network/add-ubuntu-18
Browse files Browse the repository at this point in the history
Add ubuntu 18
  • Loading branch information
tommyjk21 committed Jan 19, 2022
2 parents 5c238b1 + 2ff85f8 commit 2b0974c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ jobs:
os_type: ubuntu
artifact_name: manta-signer
asset_name: manta-signer-linux-amd64
- os: ubuntu-18.04
os_type: ubuntu
artifact_name: manta-signer
asset_name: manta-signer-linux-amd64
- os: windows-2019
os_type: windows
artifact_name: manta-signer
Expand Down
4 changes: 2 additions & 2 deletions ui/src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions ui/src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -364,14 +364,16 @@ fn main() {
#[cfg(target_os = "macos")]
app.set_activation_policy(tauri::ActivationPolicy::Accessory);

app.run(|app, event| {
if let Event::CloseRequested { label, api, .. } = event {
app.run(|app, event| match event {
Event::Ready => app.get_window("about").unwrap().hide().unwrap(),
Event::CloseRequested { label, api, .. } => {
api.prevent_close();
match label.as_str() {
"about" => app.get_window(&label).unwrap().hide().unwrap(),
"main" => app.exit(0),
_ => unreachable!("There are no other windows."),
}
}
_ => (),
})
}

0 comments on commit 2b0974c

Please sign in to comment.