-
Notifications
You must be signed in to change notification settings - Fork 66
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
feat: remain windows support #3162
Merged
+115
−90
Merged
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
95681f4
feat: everuthing in one comments
darshankabariya dc83b2b
chore: remove command use
darshankabariya b0dd16d
chore: remove command use
darshankabariya c9f15da
chore: remove command use
darshankabariya 9249c73
chore: remove command use
darshankabariya e05bd02
chore: msys2 to mingw migration
darshankabariya b606ca2
chore: on chronological order
darshankabariya 7ddc590
chore: windows and unix command seperation
darshankabariya 2798b33
chore: update build_rln
darshankabariya 549a8d1
chore: update scripts with proper requirements
darshankabariya 7a6403c
chore: update scripts with proper requirements
darshankabariya a46905e
chore: update scripts with proper requirements
darshankabariya 23d112f
chore: remove unnecessory things
darshankabariya 9941a45
chore: mask addReader and setReader
darshankabariya ab098dc
chore: improce guide
darshankabariya aab9af7
chore: improvise guide
darshankabariya b74b27f
chore: resolve static linking issue in end
darshankabariya 0b700f7
chore: ignore failure
darshankabariya 81b4d5a
chore: update scripts
darshankabariya 2e64a4a
chore: will not stop execution
darshankabariya 0983753
chore: space formating
darshankabariya 6e86399
chore: counting
darshankabariya 61a3e61
chore: set path expilictly
darshankabariya f9012da
chore: some chore
darshankabariya 82dfefb
chore: update requirements
darshankabariya c74641a
chore: update requirements
darshankabariya 949fab2
chore: update PATH
darshankabariya 018ee68
chore: handle double quotes
darshankabariya 32f2fed
feat: make more cleane and add instruction to readme.md
darshankabariya 535bf2e
feat: delete instruction from scripts
darshankabariya 130d5ff
feat: improve according to suggestion
darshankabariya 3ede9f9
chore: some correction
darshankabariya File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
#!/bin/sh | ||
|
||
echo "- - - - - - - - - - Windows Setup Script - - - - - - - - - -" | ||
|
||
success_count=0 | ||
failure_count=0 | ||
|
||
# Function to execute a command and check its status | ||
execute_command() { | ||
echo "Executing: $1" | ||
if eval "$1"; then | ||
echo -e "✓ Command succeeded \n" | ||
((success_count++)) | ||
else | ||
echo -e "✗ Command failed \n" | ||
((failure_count++)) | ||
fi | ||
} | ||
|
||
echo "1. -.-.-.-- Set PATH -.-.-.-" | ||
export PATH="/c/msys64/usr/bin:/c/msys64/mingw64/bin:/c/msys64/usr/lib:/c/msys64/mingw64/lib:$PATH" | ||
|
||
echo "2. -.-.-.- Verify dependencies -.-.-.-" | ||
execute_command "which gcc g++ make cmake cargo upx rustc python" | ||
|
||
echo "3. -.-.-.- Updating submodules -.-.-.-" | ||
execute_command "git submodule update --init --recursive" | ||
|
||
echo "4. -.-.-.- Creating tmp directory -.-.-.-" | ||
execute_command "mkdir -p tmp" | ||
|
||
echo "5. -.-.-.- Building Nim -.-.-.-" | ||
cd vendor/nimbus-build-system/vendor/Nim | ||
execute_command "./build_all.bat" | ||
cd ../../../.. | ||
|
||
echo "6. -.-.-.- Building libunwind -.-.-.-" | ||
cd vendor/nim-libbacktrace | ||
execute_command "make all V=1" | ||
execute_command "make install/usr/lib/libunwind.a V=1" | ||
cp ./vendor/libunwind/build/lib/libunwind.a install/usr/lib | ||
cd ../../ | ||
|
||
echo "7. -.-.-.- Building miniupnpc -.-.-.- " | ||
cd vendor/nim-nat-traversal/vendor/miniupnp/miniupnpc | ||
execute_command "git checkout little_chore_windows_support" | ||
execute_command "make -f Makefile.mingw CC=gcc CXX=g++ libminiupnpc.a V=1" | ||
cd ../../../../.. | ||
|
||
echo "8. -.-.-.- Building libnatpmp -.-.-.- " | ||
cd ./vendor/nim-nat-traversal/vendor/libnatpmp-upstream | ||
make CC="gcc -fPIC -D_WIN32_WINNT=0x0600 -DNATPMP_STATICLIB" libnatpmp.a V=1 | ||
cd ../../../../ | ||
|
||
echo "9. -.-.-.- Building wakunode2 -.-.-.- " | ||
execute_command "make wakunode2 LOG_LEVEL=DEBUG V=1 -j8" | ||
|
||
echo "Windows setup completed successfully!" | ||
echo "✓ Successful commands: $success_count" | ||
echo "✗ Failed commands: $failure_count" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.