Forums

[Script] Buhl - steuer:Sparbuch 2020

Software to automate german tax bill

Auteur Réponses
quizilkend Jeudi 18 Juin 2020 à 12:34
quizilkendAnonymous

Hey,

this is my first contributing. I tried to obey the guidelines mentioned in this forum.

 

#!/usr/bin/env playonlinux-bash       

# Date: 2020-06-18
# Last Revision: 2020-06-18
# Wine version used 5.3
# Author: Samuel Greiner
# Script License: MIT
# Program License: proprietary

# References
# https://appdb.winehq.org/objectManager.php?sClass=version&iId=38454

# ---------------------------------------------------------------------------------------------------------

# Initialization
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"

TITLE="Buhl - WISO steuer:Sparbuch"
PREFIX="SteuerSparbuch2020"
WINEVERSION="5.3"
OSVERSION="win7"

POL_GetSetupImages "https://i.imgur.com/QXJA48Q.png" "https://i.imgur.com/8ipmM3A.png" "$TITLE"

POL_SetupWindow_Init
POL_SetupWindow_SetID

POL_SetupWindow_presentation "$TITLE" "Buhl Data Service" "http://www.buhl.de" "Samuel Greiner" "$TITLE"

POL_Debug_Init


# ---------------------------------------------------------------------------------------------------------
# Setup

POL_System_SetArch "x86"
POL_SetupWindow_InstallMethod "LOCAL"
    POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run!')" "$TITLE"
    SetupIs="$APP_ANSWER"

# ---------------------------------------------------------------------------------------------------------

# Prepare resources for installation

# NOTE: Install wine version if isn't available. This is necessary because
# even though "POL_Wine_PrefixCreate" solves this, we end up having
# problems when the required version is not available and it tries to
# install it! Questor
# [Ref.: https://github.com/PlayOnLinux/POL-POM-4/blob/master/lib/wine.lib]
POL_Wine_InstallVersion "$WINEVERSION"
 
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERSION"
 
Set_OS "$OSVERSION"

POL_Install_corefonts

# ---------------------------------------------------------------------------------------------------------
# Install
POL_Wine "$SetupIs"
POL_Wine_WaitExit "$TITLE"


# Create starter
POL_Shortcut "firefox.exe" "$TITLE"

 
POL_SetupWindow_message "$(eval_gettext '$TITLE has been installed successfully!\n\nThanks!\nBy Samuel Greiner')" "$TITLE"

 
POL_SetupWindow_Close
exit 0

Maybe it helps someone.
Best wishes
Samuel

Dadu042 Samedi 20 Juin 2020 à 14:09
Dadu042

Thanks for posting, I added it to : this script page.

If you update it I suggest to prefer 64bits mode (because some OS start to drop 32bits), and a widely used stable Wine version (currently it's 5.0.1).

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