-
Notifications
You must be signed in to change notification settings - Fork 1.2k
feat: compile new executable #3611
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
Open
alisonrag
wants to merge
19
commits into
master
Choose a base branch
from
feature/compile-new-executables
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 17 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
2c0bab7
feat: add scripts to par packer
alisonrag f4f1c45
feat: update dlls to perl 5.32
alisonrag e8f8ea0
feat: update dlls to perl 5.32
alisonrag 280f0c3
feat: update executable files
alisonrag af3f41b
fix: update executable files
alisonrag f08fbb8
chore: remove executables
alisonrag 6c8a556
feat: add executable with support to all interfaces
alisonrag c703a50
feat: add support to select interface in sys file
alisonrag 4c7fff1
fix: update makedist
alisonrag 01e9bc5
fix: update makedist
alisonrag b56909b
fix: use inline arguments as priority
alisonrag 5759961
fix: add script and exe for poseidon
alisonrag 113681e
fix: remove duplicated start-poseidon
alisonrag 557fae3
Merge branch 'master' into feature/compile-new-executables
alisonrag 55ea077
Merge branch 'master' into feature/compile-new-executables
alisonrag fb5bc26
Revert "fix: add script and exe for poseidon"
alisonrag c89a6e8
chore: keep poseidon compile script
alisonrag b7aa7f3
fix: remove typo in poseidon start script
alisonrag 8d7daf7
Merge branch 'master' into feature/compile-new-executables
alisonrag 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
Binary file not shown.
Binary file not shown.
This file contains hidden or 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 hidden or 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
Binary file not shown.
This file contains hidden or 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 hidden or 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,130 @@ | ||
| -#!/usr/bin/env perl | ||
| # Win32 Perl script launcher | ||
| # This file is meant to be compiled by PerlApp. It acts like a mini-Perl interpreter. | ||
| # | ||
| # Your script's initialization and main loop code should be placed in a function | ||
| # called __start() in the main package. That function will be called by this | ||
| # launcher. The reason for this is that otherwise, the perl interpreter will be | ||
| # in "eval" all the time while running your script. It will break __DIE__ signal | ||
| # handlers that check for the value of $^S. | ||
| # | ||
| # If your script is run by this launcher, the environment variable INTERPRETER is | ||
| # set. Your script should call __start() manually if this environment variable is not | ||
| # set. | ||
| # | ||
| # example script: | ||
| # our $quit = 0; | ||
| # | ||
| # sub __start { | ||
| # print "Hello world initialized.\n"; | ||
| # while (!$quit) { | ||
| # ... | ||
| # } | ||
| # } | ||
| # | ||
| # __start() unless defined $ENV{INTERPRETER}; | ||
| package StarterScript; | ||
| use FindBin; | ||
|
|
||
| if ($^O ne 'MSWin32') { | ||
| # We are not on Windows, so tell the user about it | ||
| print "\nThis file is meant to be compiled by PerlApp or PAR.\n"; | ||
| print "To run kore, execute openkore.pl instead.\n\n"; | ||
| exit 1; | ||
| } | ||
|
|
||
|
|
||
| # PerlApp 6's @INC doesn't contain '.', so add it | ||
| my $hasCurrentDir; | ||
| foreach (@INC) { | ||
| if ($_ eq ".") { | ||
| $hasCurrentDir = 1; | ||
| last; | ||
| } | ||
| } | ||
| push @INC, "." if (!$hasCurrentDir); | ||
|
|
||
| if (0) { | ||
| # Force PerlApp to include the following modules | ||
| require base; | ||
| require bytes; | ||
| require lib; | ||
| require integer; | ||
| require warnings; | ||
| require UNIVERSAL; | ||
| require Exporter; | ||
| require Fcntl; | ||
| require Carp; | ||
| require Math::Trig; | ||
| require Text::Wrap; | ||
| require Text::ParseWords; | ||
| require Text::Balanced; | ||
| require Time::HiRes; | ||
| require IO::Socket::INET; | ||
| require Getopt::Long; | ||
| require Digest::MD5; | ||
| require SelfLoader; | ||
| require Data::Dumper; | ||
| require Win32; | ||
| require Win32::Console; | ||
| require Win32::Process; | ||
| require XSTools; | ||
| require Encode; | ||
| require Encode::KR; | ||
| require Encode::TW; | ||
| require Encode::JP; | ||
| require Encode::CN; | ||
| require encoding; | ||
| require Storable; | ||
| require Compress::Zlib; | ||
| require List::Util; | ||
| require File::Path; | ||
| require Math::BigInt; | ||
| require Math::BigInt::Calc; | ||
| require Math::BigInt::CalcEmu; | ||
| require Math::BigInt::FastCalc; | ||
| require Math::BigInt::Trace; | ||
| require Math::BigFloat; | ||
| require Math::BigFloat::Trace; | ||
| require Math::BigRat; | ||
| require Math::Complex; | ||
| require Math::Trig; | ||
| # new Perl 5.12 and more | ||
| require "unicore/lib/Perl/SpacePer.pl"; | ||
| require "unicore/lib/Perl/Word.pl"; | ||
| require "unicore/lib/Nt/De.pl"; | ||
| require "unicore/lib/Gc/Cc.pl"; | ||
| require "unicore/lib/Blk/ASCII.pl"; | ||
| # Old Perl 5.10 and less | ||
| # require "unicore/lib/gc_sc/SpacePer.pl"; | ||
| # require "unicore/lib/gc_sc/Word.pl"; | ||
| # require "unicore/lib/gc_sc/Digit.pl"; | ||
| # require "unicore/lib/gc_sc/Cntrl.pl"; | ||
| # require "unicore/lib/gc_sc/ASCII.pl"; | ||
| } | ||
|
|
||
|
|
||
| if ($PerlApp::TOOL eq "PerlApp" || $ENV{PAR_PROGNAME}) { | ||
| # ok | ||
| } else { | ||
| print "Do not run start.pl directly! If you're using Perl then run openkore.pl instead!\n"; | ||
| <STDIN>; | ||
| exit 1; | ||
| } | ||
|
|
||
| my $file = "./src/Poseidon/poseidon.pl"; | ||
| $0 = $file; | ||
| FindBin::again(); | ||
|
|
||
| { | ||
| package main; | ||
| do $file; | ||
| } | ||
| if ($@) { | ||
| print $@; | ||
| print "\nPress ENTER to exit.\n"; | ||
| <STDIN>; | ||
| exit 1; | ||
| } elsif (defined $ENV{INTERPRETER}) { | ||
| main::__start() if defined(&main::__start); | ||
| } | ||
This file contains hidden or 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 hidden or 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,6 @@ | ||
| Rem this script generate a .exe with support to all interfaces | ||
| cd ..\.. | ||
| wxpar -lib src -o openkore.exe start.pl --module Wx::Perl::Packager --module Wx --module Wx:: --module Win32::GUI --module Win32::GUI::Constants --module Tk --module Tk:: --module Win32::API | ||
| pause | ||
|
|
||
| Rem --icon src\build\openkore.ico |
This file contains hidden or 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,3 @@ | ||
| cd ..\Poseidon | ||
| pp -lib src -o start-poseidon.exe start.pl | ||
| pause |
This file contains hidden or 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,5 @@ | ||
| cd ..\.. | ||
| pp -lib src -o start.exe start.pl | ||
| pause | ||
|
|
||
| Rem --icon src\build\openkore.ico |
This file contains hidden or 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,5 @@ | ||
| cd ..\.. | ||
| pp -lib src -o tkstart.exe start.pl -g --module Tk --module Tk:: --module Win32::API | ||
| pause | ||
|
|
||
| Rem --icon src\build\openkore.ico |
This file contains hidden or 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,5 @@ | ||
| cd ..\.. | ||
| pp -lib src -o vxstart.exe start.pl -g --module Tk --module Tk:: | ||
| pause | ||
|
|
||
| Rem --icon src\build\openkore.ico |
This file contains hidden or 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,5 @@ | ||
| cd ..\.. | ||
| pp -lib src -o winguistart.exe start.pl -g --module Win32::GUI --module Win32::GUI::Constants | ||
| pause | ||
|
|
||
| Rem --icon src\build\openkore.ico |
This file contains hidden or 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,5 @@ | ||
| cd ..\.. | ||
| wxpar -lib src -o wxstart.exe start.pl --module Wx::Perl::Packager --module Wx --module Wx:: | ||
| pause | ||
|
|
||
| Rem --icon src\build\openkore.ico |
Binary file not shown.
This file contains hidden or 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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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.
Uh oh!
There was an error while loading. Please reload this page.