Skip to content

Instantly share code, notes, and snippets.

@tiagovla
Created April 6, 2021 04:14
Show Gist options
  • Save tiagovla/de326b0b3870718277185c4c056cd6eb to your computer and use it in GitHub Desktop.
Save tiagovla/de326b0b3870718277185c4c056cd6eb to your computer and use it in GitHub Desktop.
Script to install grammarly on linux using PlayOnLinux.
#!/usr/bin/env playonlinux-bash
# Date : (2021-04-05 04-20)
# Last revision : (2021-04-05 06-09)
# Wine version used : 6.3 staging
# Distribution used to test : Ubuntu 20.04 LTS
# Author : tiagovla
# PlayOnLinux : 4.3.4
# Script licence : MIT
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
TITLE="Grammarly"
PREFIX="Grammarly"
POL_SetupWindow_Init
POL_SetupWindow_presentation "$TITLE" "$TITLE" "http://www.grammarly.com" "tiagovla" "$TITLE"
POL_System_TmpCreate "$PREFIX"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate
POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
if [ "$INSTALL_METHOD" = "LOCAL" ]
then
POL_SetupWindow_browse "Please select the installation file to run." "Mozilla Firefox installation"
INSTALLER="$APP_ANSWER"
elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]
then
cd "$POL_System_TmpDir"
POL_Download "https://download-editor.grammarly.com/windows/GrammarlySetup.exe"
INSTALLER="$POL_System_TmpDir/GrammarlySetup.exe"
fi
POL_Call POL_Install_dotnet40
#dotnet 45
POL_SetupWindow_message "Installing .NET 4.5"
Set_OS "win7"
POL_Download_Resource "http://download.microsoft.com/download/b/a/4/ba4a7e71-2906-4b2d-a0e1-80cf16844f5f/dotnetfx45_full_x86_x64.exe" "d02dc8b69a702a47c083278938c4d2f1" "dotnet45"
cd "$POL_USER_ROOT/ressources/dotnet45"
POL_Wine --ignore-errors "dotnetfx45_full_x86_x64.exe" /q /c:"install.exe /q"
POL_Wine_OverrideDLL "native" "mscoree"
POL_SetupWindow_message "Installing $TITLE"
POL_SetupWindow_Close
POL_Wine "$INSTALLER"
POL_Shortcut "GrammarlyForWindows.exe" "$TITLE"
POL_System_TmpDelete
exit
@akarasulu
Copy link

I was wondering if you have an updated version for Jammy Jellyfish. Thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment