-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Krusty/Benediction
committed
Aug 8, 2024
1 parent
23765b5
commit d8a0f5c
Showing
6 changed files
with
85 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
use crate::{delegated::{ArchiveFormat, DelegateApplicationDescription}, task::IMPDISC_CMDS}; | ||
|
||
pub enum ImpDskVersion { | ||
V0_24 | ||
} | ||
|
||
impl Default for ImpDskVersion { | ||
fn default() -> Self { | ||
ImpDskVersion::V0_24 | ||
} | ||
} | ||
|
||
impl ImpDskVersion { | ||
pub fn get_command(&self) -> &str { | ||
IMPDISC_CMDS[0] | ||
} | ||
} | ||
|
||
cfg_match! { | ||
cfg(target_os = "linux") => | ||
{ | ||
impl ImpDskVersion { | ||
pub fn configuration(&self) -> DelegateApplicationDescription { | ||
match self { | ||
ImpDskVersion::V0_24 => | ||
DelegateApplicationDescription { | ||
download_url: "https://github.com/jeromelesaux/dsk/releases/download/v0.24/dsk-0.24-linux-amd64.zip", // we assume a modern CPU | ||
folder : "ImpDsk_0_24", | ||
archive_format: ArchiveFormat::Zip, | ||
exec_fname: "binaries/dsk-linux-amd64", | ||
compile: None | ||
} | ||
} | ||
} | ||
} | ||
} | ||
cfg(target_os = "windows") => | ||
{ | ||
impl ImpDskVersion { | ||
pub fn configuration(&self) -> DelegateApplicationDescription { | ||
match self { | ||
ImpDskVersion::V0_24 => | ||
DelegateApplicationDescription { | ||
download_url: "https://github.com/jeromelesaux/dsk/releases/download/v0.24/dsk-0.24-windows-amd64.zip", | ||
folder : "ImpDsk_0_24", | ||
archive_format: ArchiveFormat::Zip, | ||
exec_fname: "binaries/dsk-windows-amd64.exe", | ||
compile: None | ||
} | ||
} | ||
} | ||
} | ||
|
||
} | ||
cfg(target_os = "macos") => | ||
{ | ||
|
||
} | ||
_ => { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters