mirror of
https://github.com/rizinorg/cutter.git
synced 2024-11-23 04:49:49 +00:00
Update rizin and version API (#3008)
This commit is contained in:
parent
9e2201aa81
commit
35f9bfe135
2
dist/bundle_python.ps1
vendored
2
dist/bundle_python.ps1
vendored
@ -2,7 +2,7 @@ $arch = $args[0]
|
||||
$dist = $args[1]
|
||||
|
||||
$py_version = (python --version).Split()[1]
|
||||
$py_base = "python" + $py_version[0] + $py_version[2]
|
||||
$py_base = "python" + $py_version.Split('.')[0] + $py_version.Split('.')[1]
|
||||
$py_platform = If ($arch -eq "x64") {"amd64"} Else {"win32"}
|
||||
$py_url = "https://www.python.org/ftp/python/${py_version}/python-${py_version}-embed-${py_platform}.zip"
|
||||
|
||||
|
2
rizin
2
rizin
@ -1 +1 @@
|
||||
Subproject commit b79201b49a0d687c854b6e2f0c88fc8a7f2afa61
|
||||
Subproject commit 215e49253d3a35e1aae340b7ae8465018254ae87
|
@ -4297,10 +4297,9 @@ void CutterCore::loadScript(const QString &scriptname)
|
||||
triggerRefreshAll();
|
||||
}
|
||||
|
||||
QString CutterCore::getRizinVersionReadable()
|
||||
QString CutterCore::getRizinVersionReadable(const char *program)
|
||||
{
|
||||
return QString("%1 (%2)").arg(QString::fromUtf8(RZ_VERSION),
|
||||
QString::fromUtf8(RZ_GITTIP).left(7));
|
||||
return fromOwnedCharPtr(rz_version_str(program));
|
||||
}
|
||||
|
||||
QString CutterCore::getVersionInformation()
|
||||
@ -4337,7 +4336,8 @@ QString CutterCore::getVersionInformation()
|
||||
/* ... */
|
||||
{ NULL, NULL }
|
||||
};
|
||||
versionInfo.append(QString("%1 rz\n").arg(getRizinVersionReadable()));
|
||||
versionInfo.append(getRizinVersionReadable());
|
||||
versionInfo.append("\n");
|
||||
for (i = 0; vcs[i].name; i++) {
|
||||
struct vcs_t *v = &vcs[i];
|
||||
const char *name = v->callback();
|
||||
|
@ -201,7 +201,7 @@ public:
|
||||
{
|
||||
return asyncCmdEsil(command.toUtf8().constData(), task);
|
||||
}
|
||||
QString getRizinVersionReadable();
|
||||
QString getRizinVersionReadable(const char *program = nullptr);
|
||||
QString getVersionInformation();
|
||||
|
||||
CutterJson parseJson(char *res, const char *cmd = nullptr);
|
||||
|
Loading…
Reference in New Issue
Block a user