feat(build): AppImage, udevhelper

This commit is contained in:
CLARATION committed 2026-09-10 23:25:11 -07:00
1 parent 4cec4b0d4a
commit bd0ed7a600
35 files changed
+410 -75

No files matched your search

+33
View File
@@ -31,6 +31,9 @@
#include <wx/wx.h>
#include "../globals.h"
#if defined(WITH_GUI) && defined(__linux__)
# include "../udevhelper.h"
#endif
#include "../events/event.hpp"
wxDEFINE_EVENT(EVT_DEVICE_STATE_UPDATE, wxCommandEvent);
@@ -106,6 +109,36 @@ void MainFrame::ShowMain()
m_dfu->Hide();
m_exploit->Hide();
Layout();
// check udev rules
#if defined(WITH_GUI) && defined(__linux__)
if (!udev_rules_exist()) {
int result = wxMessageBox(
"USB permissions need to be configured before exploiting.\n\n"
"This will install the required udev rules so palera1n "
"can communicate with your device over USB in DFU.\n\n"
"Otherwise, we may not be able to jailbreak your device.",
"Set Up USB Permissions",
wxYES_NO | wxICON_INFORMATION,
this
);
if (result != wxYES)
return;
if (add_udev_rules() != 0) {
wxMessageBox(
"Failed to configure USB permissions.",
"Error",
wxOK | wxICON_ERROR,
this
);
return;
}
}
#endif
}
void MainFrame::ShowSettings()
+3 -3
View File
@@ -25,8 +25,8 @@
*
*/
#ifndef APPFRAME_H
#define APPFRAME_H
#ifndef P1__APP_FRAME_HPP
#define P1__APP_FRAME_HPP
#ifdef WITH_GUI
@@ -77,4 +77,4 @@ public:
#endif // WITH_GUI
#endif // APPFRAME_H
#endif // P1__APP_FRAME_HPP
+3 -3
View File
@@ -25,8 +25,8 @@
*
*/
#ifndef DEVICEPANEL_H
#define DEVICEPANEL_H
#ifndef P1__DEVICE_PANEL_HPP
#define P1__DEVICE_PANEL_HPP
#include <wx/wx.h>
#include "../events/event.hpp"
@@ -65,4 +65,4 @@ private:
DeviceState m_deviceState;
};
#endif // DEVICEPANEL_H
#endif // P1__DEVICE_PANEL_HPP
+3 -3
View File
@@ -25,8 +25,8 @@
*
*/
#ifndef DFUPANEL_H
#define DFUPANEL_H
#ifndef P1__DFU_PANEL_HPP
#define P1__DFU_PANEL_HPP
#ifdef WITH_GUI
@@ -73,4 +73,4 @@ private:
#endif // WITH_GUI
#endif // DFUPANEL_H
#endif // P1__DFU_PANEL_HPP
+3 -3
View File
@@ -25,8 +25,8 @@
*
*/
#ifndef EXPLOITPANEL_HPP
#define EXPLOITPANEL_HPP
#ifndef P1__EXPLOIT_PANEL_HPP
#define P1__EXPLOIT_PANEL_HPP
#ifdef WITH_GUI
@@ -49,4 +49,4 @@ private:
#endif // WITH_GUI
#endif // EXPLOITPANEL_HPP
#endif // P1__EXPLOIT_PANEL_HPP
+3 -3
View File
@@ -25,8 +25,8 @@
*
*/
#ifndef MAINPANEL_H
#define MAINPANEL_H
#ifndef P1__MAIN_PANEL_HPP
#define P1__MAIN_PANEL_HPP
#ifdef WITH_GUI
@@ -48,4 +48,4 @@ private:
#endif // WITH_GUI
#endif // MAINPANEL_H
#endif // P1__MAIN_PANEL_HPP
+3 -3
View File
@@ -25,8 +25,8 @@
*
*/
#ifndef RECOVERYPANEL_H
#define RECOVERYPANEL_H
#ifndef P1__RECOVERY_PANEL_HPP
#define P1__RECOVERY_PANEL_HPP
#ifdef WITH_GUI
@@ -53,4 +53,4 @@ private:
#endif // WITH_GUI
#endif // RECOVERYPANEL_H
#endif // P1__RECOVERY_PANEL_HPP
+3 -3
View File
@@ -25,8 +25,8 @@
*
*/
#ifndef SETTINGSPANEL_H
#define SETTINGSPANEL_H
#ifndef P1__SETTINGS_PANEL_HPP
#define P1__SETTINGS_PANEL_HPP
#ifdef WITH_GUI
@@ -42,4 +42,4 @@ public:
#endif // WITH_GUI
#endif // SETTINGSPANEL_H
#endif // P1__SETTINGS_PANEL_HPP