The forum

[Script] Balsamiq Mockups

Author Replies
savornicesei Thursday 22 November 2018 at 22:56
savorniceseiAnonymous

Hi all.

I've created a small POL script for running Balsamiq Mockups app. V3 is build on top of Adobe Air.

#!/bin/bash
# Date : (2018-11-22)
# Distribution used to test : OpenSUSE Tumbleweed x64
# Author : Simona Avornicesei
# Licence : MIT
# PlayOnLinux: 4.2.12
#
# Installs Balsamiq Mockups 3 through PlayOnLinux/PlayOnMac
#
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
PREFIX="BalsamiqMockups"
APP_TITLE="Balsamiq Mockups"
APP_EDITOR="Balsamiq Studios, LLC"
APP_URL="https://balsamiq.com/"
SCRIPT_AUTHOR="Simona Avornicesei"
 
#Initialization
POL_GetSetupImages "https://media.balsamiq.com/files/company/balsamiq-logo-noborder-print.png" "https://media.balsamiq.com/images/ico-desktop-lg.png" "$APP_TITLE"
POL_SetupWindow_Init
 
POL_Debug_Init
 
# Presentation
POL_SetupWindow_presentation "$APP_TITLE" "$APP_EDITOR" "$APP_URL" "$SCRIPT_AUTHOR" "$PREFIX"
 
# Create Prefix
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate
 
POL_System_TmpCreate "$PREFIX"
cd "$POL_System_TmpDir"
 
#######################################
# Installation
#######################################
BALSAMIQ_URL="https://builds.balsamiq.com/mockups-desktop/Balsamiq_Mockups_3.5.16_bundled.zip"
BALSAMIQ_ZIP="Balsamiq_Mockups_3.5.16_bundled.zip"
BALSAMIQ_EXE="Balsamiq Mockups 3.exe"
 
# Require that unzip is available
if ! which unzip > /dev/null
then
POL_Debug_Error "$(eval_gettext 'Missing required program: ')unzip"
return 1
fi
 
# Download and extract Balsamiq
POL_Download "$BALSAMIQ_URL"
if ! unzip "$BALSAMIQ_ZIP"
then
POL_Debug_Error "$(eval_gettext 'Failed to unzip the Balsamiq archive: ')$BALSAMIQ_ZIP"
return 1
fi
POL_Debug_Message "Balsamiq extracted to $POL_System_TmpDir"
mkdir ~/.PlayOnLinux/wineprefix/$PREFIX/drive_c/Balsamiq_Mockups_3
mv -f Balsamiq_Mockups_3/* ~/.PlayOnLinux/wineprefix/$PREFIX/drive_c/Balsamiq_Mockups_3/
 
# Delete TMP folder
POL_System_TmpDelete
 
# Create Shortcuts
POL_Shortcut "$BALSAMIQ_EXE" "$APP_TITLE"
 
POL_SetupWindow_Close
 
exit 0

 

Feddback is welcome.

Thank you.


Nameless hero. Professional bug slayer mom.
Tutul Friday 23 November 2018 at 15:42
Tutul

you can propose it in "supported software"

Create a new one, and add you script using "I want to contribute"


Gentils modérateur dans mes bon jours - Attention, à tenir hors de portée des enfants. En cas de contact, veuillez immédiatement rincer à l'eau clair. Peut provoquer des sueurs froide !
savornicesei Friday 23 November 2018 at 20:17
savorniceseiAnonymous

Done.

Thank you.


Nameless hero. Professional bug slayer mom.
enielrodriguez Saturday 29 February 2020 at 1:24
enielrodriguezAnonymous

The Balsamiq zip link is broken, I replace by this: https://build_archives.s3.amazonaws.com/obsolete/mockups-desktop/3.5/Balsamiq_Mockups_3.5.16_bundled.zip

This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmcayonlinux.com