Skip to content

Commit

Permalink
Run under cmd prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
adfoster-r7 committed Apr 18, 2024
1 parent 0012375 commit 298c577
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,13 @@ jobs:
ls local/cache
- name: Run omnibus
shell: cmd
run: |
cd metasploit-omnibus
make
# Don't run via `make`, as the process will be spawned under msys2 - and the ridk.cmd
# ruby installer will forcibly kill the msys2 process before attempting to install ruby
make dependencies
# build the metasploit-framework package
ruby bin/omnibus build metasploit-framework
11 changes: 7 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
.DEFAULT_GOAL := all

.PHONY: all
all: certs/ca-certificates.crt
all: certs/ca-certificates.crt dependencies
# export SSL_CERT_FILE=${PWD}/certs/ca-certificates.crt

# build the metasploit-framework package
ruby bin/omnibus build metasploit-framework

.PHONY: dependencies
dependencies:
# Ensure consistent bundler versions
gem install bundler -v 2.2.3

Expand All @@ -12,9 +18,6 @@ all: certs/ca-certificates.crt

gem install win32-process -v 0.9.0

# build the metasploit-framework package
ruby bin/omnibus build metasploit-framework

certs/ca-certificates.crt:
mkdir -p certs
curl -L -o certs/ca-certificates.crt https://curl.haxx.se/ca/cacert.pem
Expand Down
4 changes: 4 additions & 0 deletions config/software/ruby-windows-devkit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
embedded_dir = "#{install_dir}/embedded"

command "echo before!", env: env, cwd: embedded_dir
# Ruby Installer for windows:
# 1 - MSYS2 base installation
# 2 - MSYS2 system update (optional)
# 3 - MSYS2 and MINGW development toolchain
command "#{embedded_dir}/bin/ridk.cmd install 2 3", env: env, cwd: embedded_dir
command "echo after!", env: env, cwd: embedded_dir
end

0 comments on commit 298c577

Please sign in to comment.