Skip to content
This repository has been archived by the owner on Feb 7, 2020. It is now read-only.

Commit

Permalink
first release
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronsor committed Nov 22, 2019
1 parent 8b6f0e8 commit 9655df2
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 14 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ out/
temp-deps/
ra1nstorm.run
ra1nstorm.exe
setup.exe
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

The ra1nstorm helper prepares an environment adequate for running checkra1n.

* **[Join us on Discord](https://discord.gg/e9W8cv8)**
* **[Twitter](https://twitter.com/realra1nstorm)**

## Stage1

Stage1 (`stage1/`) contains the Windows-part of the setup and is responsible
Expand Down
14 changes: 7 additions & 7 deletions stage1/idp/idp.iss
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
; http://mitrichsoftware.wordpress.com/
; https://code.google.com/p/inno-download-plugin/

#define IDPROOT ExtractFilePath(__PATHFILENAME__)
#define IDPROOT "idp\"

#ifdef UNICODE
#pragma include __INCLUDE__ + ";" + IDPROOT + "\unicode"
#pragma include __INCLUDE__ + ";" + IDPROOT + "unicode"
#else
#pragma include __INCLUDE__ + ";" + IDPROOT + "\ansi"
#pragma include __INCLUDE__ + ";" + IDPROOT + "ansi"
#endif

; If IDP_DEBUG is defined before including idp.iss, script will use debug version of idp.dll (not included, you need to build it yourself).
Expand All @@ -20,9 +20,9 @@
#endif

#ifdef UNICODE
#define IDPDLLDIR IDPROOT + "\unicode" + DBGSUFFIX
#define IDPDLLDIR IDPROOT + "unicode" + DBGSUFFIX
#else
#define IDPDLLDIR IDPROOT + "\ansi" + DBGSUFFIX
#define IDPDLLDIR IDPROOT + "ansi" + DBGSUFFIX
#endif

#define IDP_VER_MAJOR
Expand All @@ -31,7 +31,7 @@
#define IDP_VER_BUILD

#expr ParseVersion(IDPDLLDIR + "\idp.dll", IDP_VER_MAJOR, IDP_VER_MINOR, IDP_VER_REV, IDP_VER_BUILD)
#define IDP_VER EncodeVer(IDP_VER_MAJOR, IDP_VER_MINOR, IDP_VER_REV, IDP_VER_BUILD)
;#define IDP_VER EncodeVer(IDP_VER_MAJOR, IDP_VER_MINOR, IDP_VER_REV, IDP_VER_BUILD)

#define IDP_VER_STR GetFileVersion(IDPDLLDIR + "\idp.dll")

Expand Down Expand Up @@ -659,4 +659,4 @@ begin
idpInitMessages;
end;
#include <idplang\default.iss>
#include "ansi\idplang\default.iss"
18 changes: 11 additions & 7 deletions stage1/main.iss
Original file line number Diff line number Diff line change
@@ -1,24 +1,28 @@
#pragma include __INCLUDE__ + ";" + "idp\"
[Setup]
AppName = ra1nstorm
AppVerName = 0.9
AppVersion = 0.9
DefaultDirName = {pf}\ra1nstorm
DefaultDirName = {sd}\ra1nstorm
DefaultGroupName = ra1nstorm
DisableDirPage = yes
; Size of files to download:
OutputDir = ..\

#include "idp\idp.iss"

[Icons]
Name: "{group}\{cm:UninstallProgram,ra1nstorm}"; Filename: "{uninstallexe}"
[Files]
Source: "..\ra1nstorm.run"; DestDir: "{app}"

[UninstallDelete]
[Run]
Filename: "{tmp}\ra1nlinux\wubi.exe"; Parameters: "--size=64000 --dimagepath=xubuntu-18.04.2-desktop-amd64.iso"

[Code]
procedure InitializeWizard();
begin
idpAddFile('http://127.0.0.1/test1.zip', ExpandConstant('{tmp}\test1.zip'));
idpAddFile('http://127.0.0.1/test2.zip', ExpandConstant('{tmp}\test2.zip'));
idpAddFile('http://127.0.0.1/test3.zip', ExpandConstant('{tmp}\test3.zip'));
CreateDir(ExpandConstant('{tmp}\ra1nlinux'));
idpAddFile('https://github.com/hakuna-m/wubiuefi/releases/download/18042r333/wubi18042r333.exe', ExpandConstant('{tmp}\ra1nlinux\wubi.exe'));
idpAddFile('http://mirror.us.leaseweb.net/ubuntu-cdimage/xubuntu/releases/18.04/release/xubuntu-18.04.2-desktop-amd64.iso', ExpandConstant('{tmp}\ra1nlinux\xubuntu-18.04.2-desktop-amd64.iso'));
idpDownloadAfter(wpReady);
end;
Expand Down
5 changes: 5 additions & 0 deletions stage2/BootVM.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#!/bin/bash

if [ "$(id -u)" != 0 ]; then
echo "Run as root."
exec sudo $0
fi

cd /opt/ra1nstorm
. vmprepare.sh
. vmconfig.sh
Expand Down

0 comments on commit 9655df2

Please sign in to comment.