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

Improved source enviroment #147

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

eniac11
Copy link

@eniac11 eniac11 commented Oct 2, 2024

I have modified the msvcenv script to allow wine to find the exe for us.

Some improvements that I think could be made is intelligently adding libs and includes and bin_dirs based on what exists in the destination. It would be easy to do as the paths just need to be defined and added to the list.

The script is not destination independent yet and I am not sure what needs to change to integrate it.

The intended way to use is:

cd $DEST
source msvcenv.sh x64
# either
run_exe link.exe
# or
# from make_symlinks.sh
link 

The benefit of doing it this way is that run_exe oleview will work which I don't think the current way of running exe will find it.

It only works on bash at the moment, when I tried it on zsh the replacements were messed up.

This is my first pull request, so I am not sure what to do with copyright notice

The original goal of this modification was to make the paths in the
variables Unix paths first then in one sweep convert them.

In the end that goal was achieved and improved to make it so wine
resolve exe paths.
Inspired by busybox which use the name of the file it is run from as the
application to run.

make_symlinks will generate the symlinked files based on the ARCH.
@eniac11 eniac11 marked this pull request as draft October 4, 2024 08:27
Zsh requires the "/" character to be escaped which also works in bash.
@eniac11 eniac11 marked this pull request as ready for review October 4, 2024 08:31
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.

1 participant