Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add windows default install #605

Merged
merged 5 commits into from
Feb 17, 2024
Merged

Add windows default install #605

merged 5 commits into from
Feb 17, 2024

Conversation

hulto
Copy link
Collaborator

@hulto hulto commented Feb 17, 2024

What type of PR is this?

/kind feature

What this PR does / why we need it:

Add a default way for imix users to install on windows.
Fix imix service build allowing it to run as a regular exe as well.

@hulto hulto added this to the v0.1.0 milestone Feb 17, 2024
Copy link

codecov bot commented Feb 17, 2024

Codecov Report

Attention: 12 lines in your changes are missing coverage. Please review.

Comparison is base (8d8d457) 67.84% compared to head (9c77057) 71.53%.

Files Patch % Lines
implants/imix/src/main.rs 0.00% 11 Missing ⚠️
implants/imix/src/lib.rs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #605      +/-   ##
==========================================
+ Coverage   67.84%   71.53%   +3.69%     
==========================================
  Files         167      167              
  Lines       10420    11002     +582     
==========================================
+ Hits         7069     7870     +801     
+ Misses       3172     2953     -219     
  Partials      179      179              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

create_res = sys.shell("sc.exe create "+service_name+" binpath= "+executable_path+" displayname="+service_display_name+" start= auto type= own")
if 'ERROR' in create_res['stdout'] or create_res['stderr'] != "":
print("Failed to create service:\n")
print(create_res)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: combine these into one print statement

print("failed to create service:\n"+create_rest+"\n")

@@ -3,14 +3,24 @@
#[macro_use]
extern crate windows_service;

use imix::handle_main;
use imix::{handle_main};
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the {}

KCarretto
KCarretto previously approved these changes Feb 17, 2024
@hulto hulto merged commit 150caa1 into main Feb 17, 2024
3 of 6 checks passed
@hulto hulto deleted the add-windows-default-install branch February 17, 2024 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants