Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions pkg/build_full.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ productsign \

# notarizing
#
# xcrun notarytool submit pkg/tiles-full.pkg \
# --keychain-profile "tiles-notary-profile" \
# --wait
xcrun notarytool submit pkg/tiles-full.pkg \
--keychain-profile "tiles-notary-profile" \
--wait

# # staple the approval ticket to pkg
# xcrun stapler staple pkg/tiles-full.pkg
xcrun stapler staple pkg/tiles-full.pkg

rm pkg/tiles-full-unsigned.pkg
2 changes: 1 addition & 1 deletion pkg/distribution.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<installer-gui-script minSpecVersion="1">
<title>Tiles</title>
<title>Tiles Offline</title>


<!-- <background file="sidebar.png" mime-type="image/png" scaling="proportionally" alignment="left"/> -->
Expand Down
2 changes: 1 addition & 1 deletion pkg/distribution_network.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<installer-gui-script minSpecVersion="1">
<title>Tiles</title>
<title>Tiles Network</title>


<!-- <background file="sidebar.png" mime-type="image/png" scaling="proportionally" alignment="left"/> -->
Expand Down
1 change: 0 additions & 1 deletion pkg/resources/welcome.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
</head>

<body>
<h2>Welcome to the Offline Tiles installer.</h2>

<p>
Tiles is your private and secure AI assistant for everyday use. Developed as an independent open source project, made possible by wonderful sponsors.<br><br>
Expand Down
1 change: 0 additions & 1 deletion pkg/resources/welcome_network.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
</head>

<body>
<h2>Welcome to the Network Tiles installer.</h2>

<p>
Tiles is your private and secure AI assistant for everyday use. Developed as an independent open source project, made possible by wonderful sponsors.<br><br>
Expand Down
15 changes: 10 additions & 5 deletions tiles/src/utils/installer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ pub async fn try_update(update_info: Option<UpdateInfo>) -> Result<String> {
.stdout(Stdio::piped())
.spawn()?;

let _run_sh_cmd = Command::new("sh")
let run_sh_cmd_status = Command::new("sudo")
.arg("sh")
.stdin(
curl_process
.stdout
Expand All @@ -59,10 +60,14 @@ pub async fn try_update(update_info: Option<UpdateInfo>) -> Result<String> {
.stderr(Stdio::inherit())
.status()?;

Ok(format!(
"Tiles upgraded to {}",
app_update_info.latest_version
))
if run_sh_cmd_status.success() {
Ok(format!(
"Tiles updated to {}",
app_update_info.latest_version
))
} else {
Ok("Tiles failed to update".to_owned())
}
}
}

Expand Down
Loading