mirror of
https://github.com/dobin/SuperMega
synced 2026-06-03 01:27:11 +00:00
ui: update
This commit is contained in:
@@ -14,21 +14,19 @@
|
|||||||
<!-- Row 1: Buttons -->
|
<!-- Row 1: Buttons -->
|
||||||
<div class="col-1">
|
<div class="col-1">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-6">
|
<form method="POST" enctype="multipart/form-data" action="/project/{{project_name}}/exec?no_exec=true">
|
||||||
|
<button class="btn btn-primary" type="submit" value="start">Open Dir</button>
|
||||||
|
</form>
|
||||||
|
|
||||||
<form method="POST" enctype="multipart/form-data" action="/project/{{project_name}}/build">
|
<form method="POST" enctype="multipart/form-data" action="/project/{{project_name}}/build">
|
||||||
<button class="btn btn-primary" type="submit" value="start">Build</button>
|
<button class="btn btn-primary" type="submit" value="start">Build</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
{% if is_built %}
|
{% if is_built %}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<form method="POST" enctype="multipart/form-data" action="/project/{{project_name}}/exec">
|
<form method="POST" enctype="multipart/form-data" action="/project/{{project_name}}/exec">
|
||||||
<button class="btn btn-primary" type="submit" value="start">Start Local</button>
|
<button class="btn btn-primary" type="submit" value="start">Start</button>
|
||||||
</form>
|
|
||||||
|
|
||||||
<form method="POST" enctype="multipart/form-data" action="/project/{{project_name}}/exec?no_exec=true">
|
|
||||||
<button class="btn btn-primary" type="submit" value="start">File Local</button>
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
{% if has_remote %}
|
{% if has_remote %}
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ def project(name):
|
|||||||
payload_len = os.path.getsize(project.settings.payload_path)
|
payload_len = os.path.getsize(project.settings.payload_path)
|
||||||
|
|
||||||
# when we selected an input file
|
# when we selected an input file
|
||||||
if project.settings.inject_exe_in != "":
|
if project.settings.inject_exe_in != "" and os.path.exists(project.settings.inject_exe_in):
|
||||||
superpe = SuperPe(project.settings.inject_exe_in)
|
superpe = SuperPe(project.settings.inject_exe_in)
|
||||||
is_64 = superpe.is_64()
|
is_64 = superpe.is_64()
|
||||||
is_dotnet = superpe.is_dotnet()
|
is_dotnet = superpe.is_dotnet()
|
||||||
|
|||||||
Reference in New Issue
Block a user