You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/odoo.rs
+12-11Lines changed: 12 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,8 @@ impl Odoo {
35
35
VERSION,
36
36
)?;
37
37
38
-
let asset_name = format!("odoo-{}-{}.zip",Odoo::platform(),VERSION);
38
+
let(platform, extension) = Odoo::platform();
39
+
let asset_name = format!("odoo-{}-{}.{}", platform,VERSION, extension);
39
40
40
41
let asset = release.assets.iter().find(|asset| asset.name == asset_name).ok_or_else(
41
42
|| format!("Odoo: No asset found for asset name {}", asset_name)
@@ -92,21 +93,21 @@ impl Odoo {
92
93
Ok(binary_path)
93
94
}
94
95
95
-
fnplatform() -> &'staticstr{
96
+
fnplatform() -> (&'staticstr,&'staticstr){
96
97
let(platform, arch) = zed::current_platform();
97
98
match(platform, arch){
98
-
(zed::Os::Linux, zed::Architecture::X8664)ifcfg!(target_env = "musl") => "alpine-x64",// TODO it will never find musl as target_env will always be "" at compilation. Check ldd?
(zed::Os::Linux, zed::Architecture::X8664)ifcfg!(target_env = "musl") => ("alpine-x64","tar.gz"),// TODO it will never find musl as target_env will always be "" at compilation. Check ldd?
0 commit comments