mp3DirectCut

Informations

Créateur Messages
VolkerFroehlich

Information

Cet installateur a été accepté par l'équipe.

Informations

Plate-formes :
Téléchargements : 1283
Wine: System

Retours d'expérience

Description

mp3DirectCut is a lossless editor for MP3 audio files. Website.

Captures d'écran

Miniature

Code source

#!/usr/bin/env playonlinux-bash
# Date : (2020-08-18 12:00)
# Last revision : (2020-08-18 12:00)
# Wine version used : 5.0.2
# Distribution used to test : Ubuntu 19.10
# Author : VolkerFröhlich
# PlayOnLinux : 4.3.4
# Script licence : GPL3
# Program licence : Free
#!/usr/bin/env playonlinux-bash
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="mp3DirectCut"

PREFIX="mp3DirectCut"
AUTHOR="Volker Fröhlich"
EDITOR="Martin Pesch"
EDITOR_URL="https://mpesch3.de/"

EXECUTABLE_FILE="mp3DirectCut.exe"
MD5="a4043199945edd9023e2274445b6d528"
 
# Starting the script
POL_SetupWindow_Init
                           
# Starting debugging API
POL_Debug_Init
          
#POL_SetupWindow_SetID
# Open dialogue box
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$EDITOR_URL" "$AUTHOR" "$PREFIX"
Set_OS "win7"
POL_System_TmpCreate "$PREFIX"
cd "$POL_System_TmpDir" || POL_Debug_Fatal "Unable to change directory"

POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
 
if [ "$INSTALL_METHOD" = "LOCAL" ]
then
    POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE"
    INSTALLER="$APP_ANSWER"
elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then
    DOWNLOAD_LINK="https://kubadownload.com/site/assets/files/2452/mp3DC230.exe"
    DOWNLOAD_FILE=$(basename $DOWNLOAD_LINK)
    POL_Download "$DOWNLOAD_LINK" "$MD5"
    INSTALLER="$POL_System_TmpDir/$DOWNLOAD_FILE"
fi
[ -z "$INSTALLER" ] && exit -1

# Setting prefix path
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate

POL_Wine_WaitBefore "$TITLE"
###########
# The installer consistently crashes wine and,
# POL_Wine will show an error message.
# However, the app then runs smoothly, so let's not bother.
export POL_IgnoreWineErrors="True"
POL_Wine "$INSTALLER"

POL_Shortcut "$EXECUTABLE_FILE" "$TITLE" "" "" "AudioVideo;Audio;AudioVideoEditing;Music;"
 
POL_System_TmpDelete
 
POL_SetupWindow_Close
exit

Contributions

Filters:

Contribuer
Membre Messages
VolkerFroehlich Samedi 30 Janvier 2021 à 22:31
VolkerFroehlich

Warning

Cette mise à jour n'a pas été approuvée par l'équipe.
Utilisez-la à vos risques et périls

Messages

There is a new version 2.32 out.
The new script will analyze the download page of a mirror site and presumably download the newest program version.
The programm version number is added to the name of the POL shortcut

Differences

@@ -1,68 +1,88 @@
 #!/usr/bin/env playonlinux-bash
-# Date : (2020-08-18 12:00)
-# Last revision : (2020-08-18 12:00)
-# Wine version used : 5.0.2
-# Distribution used to test : Ubuntu 19.10
-# Author : VolkerFröhlich
-# PlayOnLinux : 4.3.4
-# Script licence : GPL3
-# Program licence : Free
-#!/usr/bin/env playonlinux-bash
 [ "$PLAYONLINUX" = "" ] && exit 0
-source "$PLAYONLINUX/lib/sources"
- 
+source "/usr/share/playonlinux/lib/sources"
+######################
+# global parameters
 TITLE="mp3DirectCut"
-
 PREFIX="mp3DirectCut"
 AUTHOR="Volker Fröhlich"
 EDITOR="Martin Pesch"
 EDITOR_URL="https://mpesch3.de/"
-
-EXECUTABLE_FILE="mp3DirectCut.exe"
-MD5="a4043199945edd9023e2274445b6d528"
- 
-# Starting the script
+FILE="mp3DC232.exe"
+MD5=""
+DOWNLOAD_PATH="https://maddownload.com/audio-video/audio-editors/mp3directcut/download/"
+######################
+# show POL Window
 POL_SetupWindow_Init
-                           
-# Starting debugging API
 POL_Debug_Init
-          
-#POL_SetupWindow_SetID
-# Open dialogue box
 POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$EDITOR_URL" "$AUTHOR" "$PREFIX"
+######################
+# create PREFIX environment
+POL_Wine_SelectPrefix "$PREFIX"
+POL_System_SetArch "x86"
+POL_Wine_PrefixCreate
 Set_OS "win7"
 POL_System_TmpCreate "$PREFIX"
+PWD_OLD=`pwd`
 cd "$POL_System_TmpDir" || POL_Debug_Fatal "Unable to change directory"
-
+POL_Debug_Message "# WINEPREFIX: $WINEPREFIX"
+POL_Debug_Message "# PREFIX: $PREFIX"
+POL_Debug_Message "# POL_System_TmpDir: $POL_System_TmpDir"
+######################
+# user choice:
+# local installer vs. download from $DOWNLOAD_PATH
+INSTALLER=""
 POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
- 
-if [ "$INSTALL_METHOD" = "LOCAL" ]
-then
-    POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE"
-    INSTALLER="$APP_ANSWER"
+if [ "$INSTALL_METHOD" = "LOCAL" ]; then
+######################
+# user selects installer
+	POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE"
+	INSTALLER="$APP_ANSWER"
 elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then
-    DOWNLOAD_LINK="https://kubadownload.com/site/assets/files/2452/mp3DC230.exe"
-    DOWNLOAD_FILE=$(basename $DOWNLOAD_LINK)
-    POL_Download "$DOWNLOAD_LINK" "$MD5"
-    INSTALLER="$POL_System_TmpDir/$DOWNLOAD_FILE"
+######################
+POL_Debug_Message "# download HTML page and get download link to installer"
+wget -P "$POL_System_TmpDir/" "$DOWNLOAD_PATH"
+DOWNLOAD_FULLPATH=`cat $POL_System_TmpDir/index.html | grep '.exe' | grep 'href=' | cut -d '"' -f 2`
+######################
+# download installer
+POL_Debug_Message "# download installer"
+	DOWNLOAD_LINK=$DOWNLOAD_FULLPATH
+	DOWNLOAD_FILE=$(basename "$DOWNLOAD_FULLPATH")
+POL_Debug_Message "# DOWNLOAD_LINK=$DOWNLOAD_LINK"
+POL_Debug_Message "# MD5=$MD5"
+	POL_Download "$DOWNLOAD_LINK" "$MD5"
+	INSTALLER="$POL_System_TmpDir/$DOWNLOAD_FILE"
 fi
-[ -z "$INSTALLER" ] && exit -1
-
-# Setting prefix path
-POL_Wine_SelectPrefix "$PREFIX"
-POL_Wine_PrefixCreate
-
-POL_Wine_WaitBefore "$TITLE"
+###########################
+# Run Wine installation
+if [ -f "$INSTALLER" ]; then
+	MSG="Installation in progress."
+	POL_SetupWindow_wait "$(eval_gettext '$MSG')" "$TITLE"
+	POL_Wine_WaitBefore "$TITLE"
 ###########
 # The installer consistently crashes wine and,
 # POL_Wine will show an error message.
 # However, the app then runs smoothly, so let's not bother.
-export POL_IgnoreWineErrors="True"
-POL_Wine "$INSTALLER"
-
-POL_Shortcut "$EXECUTABLE_FILE" "$TITLE" "" "" "AudioVideo;Audio;AudioVideoEditing;Music;"
- 
+	export POL_IgnoreWineErrors="True"
+	POL_Wine "$INSTALLER"
+###########################
+# Get Installed Version
+	VERSION_INSTALLED=""
+	POL_Debug_Message "# WINEPREFIX: $WINEPREFIX"
+	VERSION_FILE="$WINEPREFIX/drive_c/Program Files/mp3DirectCut/Version.txt"
+	POL_Debug_Message "# VERSION_FILE=$VERSION_FILE"
+	[ ! -f "$VERSION_FILE" ] && POL_Debug_Message "file not found $VERSION_FILE"
+	[ -f "$VERSION_FILE" ] && VERSION_INSTALLED=`head -5 "$VERSION_FILE" | grep "20" | cut -d "," -f 1`
+POL_Debug_Message "# VERSION_INSTALLED: $VERSION_INSTALLED"
+###########################
+# Create Shortcut
+	LAUNCHER="$TITLE"
+	[ ! -z "$VERSION_INSTALLED" ] && LAUNCHER="$TITLE-v$VERSION_INSTALLED"
+POL_Debug_Message "# LAUNCHER: $LAUNCHER"
+	POL_Shortcut "mp3DirectCut.exe" "$LAUNCHER" "" "" "AudioVideo;Audio;AudioVideoEditing;Music;"
+fi 
+cd $PWD_OLD
 POL_System_TmpDelete
- 
+
 POL_SetupWindow_Close
-exit
\ No newline at end of file
+exit

Nouveau code source

#!/usr/bin/env playonlinux-bash
[ "$PLAYONLINUX" = "" ] && exit 0
source "/usr/share/playonlinux/lib/sources"
######################
# global parameters
TITLE="mp3DirectCut"
PREFIX="mp3DirectCut"
AUTHOR="Volker Fröhlich"
EDITOR="Martin Pesch"
EDITOR_URL="https://mpesch3.de/"
FILE="mp3DC232.exe"
MD5=""
DOWNLOAD_PATH="https://maddownload.com/audio-video/audio-editors/mp3directcut/download/"
######################
# show POL Window
POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$EDITOR_URL" "$AUTHOR" "$PREFIX"
######################
# create PREFIX environment
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate
Set_OS "win7"
POL_System_TmpCreate "$PREFIX"
PWD_OLD=`pwd`
cd "$POL_System_TmpDir" || POL_Debug_Fatal "Unable to change directory"
POL_Debug_Message "# WINEPREFIX: $WINEPREFIX"
POL_Debug_Message "# PREFIX: $PREFIX"
POL_Debug_Message "# POL_System_TmpDir: $POL_System_TmpDir"
######################
# user choice:
# local installer vs. download from $DOWNLOAD_PATH
INSTALLER=""
POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
if [ "$INSTALL_METHOD" = "LOCAL" ]; then
######################
# user selects installer
        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE"
        INSTALLER="$APP_ANSWER"
elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then
######################
POL_Debug_Message "# download HTML page and get download link to installer"
wget -P "$POL_System_TmpDir/" "$DOWNLOAD_PATH"
DOWNLOAD_FULLPATH=`cat $POL_System_TmpDir/index.html | grep '.exe' | grep 'href=' | cut -d '"' -f 2`
######################
# download installer
POL_Debug_Message "# download installer"
        DOWNLOAD_LINK=$DOWNLOAD_FULLPATH
        DOWNLOAD_FILE=$(basename "$DOWNLOAD_FULLPATH")
POL_Debug_Message "# DOWNLOAD_LINK=$DOWNLOAD_LINK"
POL_Debug_Message "# MD5=$MD5"
        POL_Download "$DOWNLOAD_LINK" "$MD5"
        INSTALLER="$POL_System_TmpDir/$DOWNLOAD_FILE"
fi
###########################
# Run Wine installation
if [ -f "$INSTALLER" ]; then
        MSG="Installation in progress."
        POL_SetupWindow_wait "$(eval_gettext '$MSG')" "$TITLE"
        POL_Wine_WaitBefore "$TITLE"
###########
# The installer consistently crashes wine and,
# POL_Wine will show an error message.
# However, the app then runs smoothly, so let's not bother.
        export POL_IgnoreWineErrors="True"
        POL_Wine "$INSTALLER"
###########################
# Get Installed Version
        VERSION_INSTALLED=""
        POL_Debug_Message "# WINEPREFIX: $WINEPREFIX"
        VERSION_FILE="$WINEPREFIX/drive_c/Program Files/mp3DirectCut/Version.txt"
        POL_Debug_Message "# VERSION_FILE=$VERSION_FILE"
        [ ! -f "$VERSION_FILE" ] && POL_Debug_Message "file not found $VERSION_FILE"
        [ -f "$VERSION_FILE" ] && VERSION_INSTALLED=`head -5 "$VERSION_FILE" | grep "20" | cut -d "," -f 1`
POL_Debug_Message "# VERSION_INSTALLED: $VERSION_INSTALLED"
###########################
# Create Shortcut
        LAUNCHER="$TITLE"
        [ ! -z "$VERSION_INSTALLED" ] && LAUNCHER="$TITLE-v$VERSION_INSTALLED"
POL_Debug_Message "# LAUNCHER: $LAUNCHER"
        POL_Shortcut "mp3DirectCut.exe" "$LAUNCHER" "" "" "AudioVideo;Audio;AudioVideoEditing;Music;"
fi 
cd $PWD_OLD
POL_System_TmpDelete

POL_SetupWindow_Close
exit

Réponses

Edité par VolkerFroehlich

VolkerFroehlich Mardi 18 Aoüt 2020 à 12:04
VolkerFroehlich

Information

Cette mise à jour a été acceptée par l'équipe

Differences

@@ -0,0 +1,68 @@
+#!/usr/bin/env playonlinux-bash
+# Date : (2020-08-18 12:00)
+# Last revision : (2020-08-18 12:00)
+# Wine version used : 5.0.2
+# Distribution used to test : Ubuntu 19.10
+# Author : VolkerFröhlich
+# PlayOnLinux : 4.3.4
+# Script licence : GPL3
+# Program licence : Free
+#!/usr/bin/env playonlinux-bash
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+ 
+TITLE="mp3DirectCut"
+
+PREFIX="mp3DirectCut"
+AUTHOR="Volker Fröhlich"
+EDITOR="Martin Pesch"
+EDITOR_URL="https://mpesch3.de/"
+
+EXECUTABLE_FILE="mp3DirectCut.exe"
+MD5="a4043199945edd9023e2274445b6d528"
+ 
+# Starting the script
+POL_SetupWindow_Init
+                           
+# Starting debugging API
+POL_Debug_Init
+          
+#POL_SetupWindow_SetID
+# Open dialogue box
+POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$EDITOR_URL" "$AUTHOR" "$PREFIX"
+Set_OS "win7"
+POL_System_TmpCreate "$PREFIX"
+cd "$POL_System_TmpDir" || POL_Debug_Fatal "Unable to change directory"
+
+POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
+ 
+if [ "$INSTALL_METHOD" = "LOCAL" ]
+then
+    POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE"
+    INSTALLER="$APP_ANSWER"
+elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then
+    DOWNLOAD_LINK="https://kubadownload.com/site/assets/files/2452/mp3DC230.exe"
+    DOWNLOAD_FILE=$(basename $DOWNLOAD_LINK)
+    POL_Download "$DOWNLOAD_LINK" "$MD5"
+    INSTALLER="$POL_System_TmpDir/$DOWNLOAD_FILE"
+fi
+[ -z "$INSTALLER" ] && exit -1
+
+# Setting prefix path
+POL_Wine_SelectPrefix "$PREFIX"
+POL_Wine_PrefixCreate
+
+POL_Wine_WaitBefore "$TITLE"
+###########
+# The installer consistently crashes wine and,
+# POL_Wine will show an error message.
+# However, the app then runs smoothly, so let's not bother.
+export POL_IgnoreWineErrors="True"
+POL_Wine "$INSTALLER"
+
+POL_Shortcut "$EXECUTABLE_FILE" "$TITLE" "" "" "AudioVideo;Audio;AudioVideoEditing;Music;"
+ 
+POL_System_TmpDelete
+ 
+POL_SetupWindow_Close
+exit
\ No newline at end of file

Nouveau code source

#!/usr/bin/env playonlinux-bash
# Date : (2020-08-18 12:00)
# Last revision : (2020-08-18 12:00)
# Wine version used : 5.0.2
# Distribution used to test : Ubuntu 19.10
# Author : VolkerFröhlich
# PlayOnLinux : 4.3.4
# Script licence : GPL3
# Program licence : Free
#!/usr/bin/env playonlinux-bash
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="mp3DirectCut"

PREFIX="mp3DirectCut"
AUTHOR="Volker Fröhlich"
EDITOR="Martin Pesch"
EDITOR_URL="https://mpesch3.de/"

EXECUTABLE_FILE="mp3DirectCut.exe"
MD5="a4043199945edd9023e2274445b6d528"
 
# Starting the script
POL_SetupWindow_Init
                           
# Starting debugging API
POL_Debug_Init
          
#POL_SetupWindow_SetID
# Open dialogue box
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$EDITOR_URL" "$AUTHOR" "$PREFIX"
Set_OS "win7"
POL_System_TmpCreate "$PREFIX"
cd "$POL_System_TmpDir" || POL_Debug_Fatal "Unable to change directory"

POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
 
if [ "$INSTALL_METHOD" = "LOCAL" ]
then
    POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE"
    INSTALLER="$APP_ANSWER"
elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then
    DOWNLOAD_LINK="https://kubadownload.com/site/assets/files/2452/mp3DC230.exe"
    DOWNLOAD_FILE=$(basename $DOWNLOAD_LINK)
    POL_Download "$DOWNLOAD_LINK" "$MD5"
    INSTALLER="$POL_System_TmpDir/$DOWNLOAD_FILE"
fi
[ -z "$INSTALLER" ] && exit -1

# Setting prefix path
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate

POL_Wine_WaitBefore "$TITLE"
###########
# The installer consistently crashes wine and,
# POL_Wine will show an error message.
# However, the app then runs smoothly, so let's not bother.
export POL_IgnoreWineErrors="True"
POL_Wine "$INSTALLER"

POL_Shortcut "$EXECUTABLE_FILE" "$TITLE" "" "" "AudioVideo;Audio;AudioVideoEditing;Music;"
 
POL_System_TmpDelete
 
POL_SetupWindow_Close
exit

Réponses

Mardi 18 Aoüt 2020 à 16:28
c