Skip to content

Instantly share code, notes, and snippets.

@kikislater
Last active September 3, 2022 07:53
Show Gist options
  • Save kikislater/794affd3314c33a36b5edfa0f28307e4 to your computer and use it in GitHub Desktop.
Save kikislater/794affd3314c33a36b5edfa0f28307e4 to your computer and use it in GitHub Desktop.
Sensefly eMotion 3.5 for ebee classic running in Linux with wine under PlayOnLinux
#!/bin/bash
# Last revision : (2021-04-12)
# Tested : Manjaro Linux
# Author : Sylvain POULAIN
# Script licence : GPLv3
# This script is designed for PlayOnLinux and PlayOnMac.
# CHANGELOG
# [Sylvain POULAIN] (2021-04-12)
# Script creation : using wine 4.0
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
TITLE="Sensefly eMotion 3.5"
PREFIX="emotion35"
# POL_GetSetupImages --force "https://www.sensefly.com/app/themes/sensefly/dist/images/icn/favicon-32x32.png" "https://waypoint.sensefly.com/wp-content/uploads/2019/06/expand-your-horzions-2-256x256.jpg" "$TITLE"
POL_GetSetupImages --force "https://www.sensefly.com/app/themes/sensefly/dist/images/icn/favicon-32x32.png" "https://i1.wp.com/inawemedia.co.uk/wp-content/uploads/2020/04/aerial-photography-lancaster-in-awe-digital-media-drone-video-lancashire-expert-drone-photography-lancaster-glasson-dock4.jpg?fit=150%2C300&ssl=1" "$TITLE"
POL_SetupWindow_Init
#POL_SetupWindow_SetID 373
POL_Debug_Init
POL_SetupWindow_presentation "$TITLE" "eMotion" "http://www.sensefly.com" "Sylvain POULAIN | https://giscan.com" "$PREFIX"
POL_RequiredVersion "4.3.4" || POL_Debug_Fatal "$APPLICATION_TITLE $VERSION is required to install $TITLE"
POL_System_SetArch "x64"
#Preparation de Wine
POL_Wine_SelectPrefix "$PREFIX"
#POL_Wine_PrefixCreate "4.0"
POL_Wine_PrefixCreate
#POL_Call POL_Install_d3dx9_47
#POL_Call POL_Install_directx9
POL_Call POL_Install_corefonts
POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
if [ "$INSTALL_METHOD" == "LOCAL" ]; then
cd "$HOME"
POL_SetupWindow_browse "Please select the installation file to run." "$TITLE installation"
INSTALLER="$APP_ANSWER"
elif [ "$INSTALL_METHOD" == "DOWNLOAD" ]; then
POL_System_TmpCreate "$PREFIX"
cd "$POL_System_TmpDir"
POL_Download "http://download.sensefly.com/eMotion_3.5.0.msi" "2d38aaf4b8f1088fa9aa05811173d658"
INSTALLER="$POL_System_TmpDir/eMotion_3.5.0.msi"
fi
POL_Wine_WaitBefore "$TITLE"
POL_AutoWine "$INSTALLER"
POL_System_TmpDelete
#CREATION LANCEUR
POL_Shortcut "eMotion.exe" "eMotion" "" "" "Education;Science;"
POL_SetupWindow_Close
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment