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

winemono: new verb #2234

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

winemono: new verb #2234

wants to merge 1 commit into from

Conversation

WheezyE
Copy link
Contributor

@WheezyE WheezyE commented Jun 10, 2024

No description provided.

@WheezyE
Copy link
Contributor Author

WheezyE commented Jun 10, 2024

In regards to #1971 & #1236 , to help certain winetricks apps that require .NET, and to help automated wine installation projects like Pi-Apps, I wanted to propose this verb to install wine-mono silently.

I've tested this in cases where it is invoked while a wineprefix doesn't exist yet (after the user doesn't install wine-mono on initial wineboot), on existing wineprefixes (before and after uninstallation of dotnet or wine-mono), without & without cached a wine-mono.msi file.

A similar method could also be written for winegecko later.

Expand this section for a potential use-case for this verb (via a custom winetricks verb)
# winlinkexpress.verb
w_metadata winlinkexpress apps \
    title="Winlink Express 1.7.15.0 (Winlink Radio Messaging System client app)" \
    publisher="Winlink Global Radio Email" \
    year="2024" \
    media="download" \
    file1="Winlink_Express_install_1-7-15-0.zip" \
    file2="Winlink_Express_install.exe" \
    installed_exe1="c:/RMS Express/RMS Express.exe" \
    homepage="https://winlink.org"

load_winlinkexpress()
{
    w_call winemono
    load_sound alsa
    w_set_winver win10
    w_download https://web.archive.org/web/20240529202203/https://downloads.winlink.org/User%20Programs/Winlink_Express_install_1-7-15-0.zip d520f9c89b4024ffb2d7e36fa28bd3e91a861b61fc9cff660b94edd8ebe7d540
    w_try_unzip "${W_TMP}" "${W_CACHE}/${W_PACKAGE}/${file1}"
    w_try "${WINE}" "${W_TMP}/${file2}" ${W_OPT_UNATTENDED:+/VERYSILENT}

    #echo -e '\n          NOTE!!! RUN THIS COMMAND TO ENABLE COM PORTS FOR'
    #echo -e '\n          RADIO-TO-COMPUTER \"USB CAT CONTROL\" CONNECTIONS:'
    #echo -e '\n                 sudo usermod -a -G dialout \$USER'
    #echo -e '\n                 (then log out and log in again)\n'
    w_warn "\n          NOTE!!! RUN THIS COMMAND TO ENABLE COM PORTS FOR\n          RADIO-TO-COMPUTER \"USB CAT CONTROL\" CONNECTIONS:\n                 sudo usermod -a -G dialout \$USER\n                 (then log out and log in again)\n"
}

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