mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-24 15:32:07 +08:00
setup: write installer URL to tmpfile (#27426)
* setup: write installer URL to tmpfile * missed ptr type
This commit is contained in:
@@ -59,6 +59,11 @@ void Setup::download(QString url) {
|
||||
curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &res_status);
|
||||
if (ret == CURLE_OK && res_status == 200 && is_elf(tmpfile)) {
|
||||
rename(tmpfile, "/tmp/installer");
|
||||
|
||||
FILE *fp_url = fopen("/tmp/installer_url", "w");
|
||||
fprintf(fp_url, "%s", url.toStdString().c_str());
|
||||
fclose(fp_url);
|
||||
|
||||
emit finished(true);
|
||||
} else {
|
||||
emit finished(false);
|
||||
|
||||
Reference in New Issue
Block a user