feat(installer): send failure reports to the FWS bug API
When an installation fails the machine does not reboot: it stays on the log window. Until now the user had a complete report in front of them and no way to get it to us -- no browser, no mail client in a live session. The log window now carries two buttons, "Envoyer le rapport aux développeurs" and "Redémarrer". Sending does not close the window, so it can be retried after plugging in a network cable, which is the usual reason an install failed in the first place. fws-report-bug POSTs to https://fws.laxacube.ch/api/bugs.php. It is written in python3 with urllib -- no added dependency, and json.dumps escapes raw logs containing quotes, backslashes and accents, which a shell-built JSON breaks on at the first line. It attaches the logs (last 200000 characters: the error is always at the end) and the detected hardware (CPU/GPU model, RAM, UEFI or BIOS, disks, virtualisation). It never sends the user name or the host name, and the e-mail only when one is given. Nothing is sent without an explicit click. profiledef.sh also gains the 0755 permission entry for the new helper, since repository files are versioned 0644. Signed-off-by: nocode <suzuku295@gmail.com>
This commit is contained in:
3 files changed
+270
-3
No files matched your search
@@ -3,7 +3,7 @@
|
||||
|
||||
iso_name="FWS"
|
||||
iso_label="FWS_$(date --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%Y%m)"
|
||||
iso_publisher="FWS <https://github.com/You-re-like-Windows-a-bitch/fws>"
|
||||
iso_publisher="FWS <https://gitea.nocode-var.tech/FWS/FWS-ISO>"
|
||||
iso_application="Replace Windows from Microsoft"
|
||||
iso_version="$(date --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%Y.%m.%d)"
|
||||
install_dir="fws"
|
||||
@@ -41,5 +41,6 @@ file_permissions=(
|
||||
["/usr/local/bin/fws-recovery-gui"]="0:0:755"
|
||||
["/usr/local/bin/fws-powermenu"]="0:0:755"
|
||||
["/usr/local/bin/fws-about"]="0:0:755"
|
||||
["/usr/local/bin/fws-report-bug"]="0:0:755"
|
||||
["/etc/grub.d/42_fws-recovery"]="0:0:755"
|
||||
)
|
||||
Reference in new issue
Block a user