WinSCP

Informations

Creator Message
denis.mallet Anonymous

Warning

This installer has not been approved yet by the team.

Informations

Platforms:
Downloads: 0
Wine: System

Feedbacks

Description

WinSCP is an open source free SFTP client and FTP client for Windows. Its main function is the secure file transfer between local and remote computer.

Source code

                

Contributions

Filters:

Contribute
Member Message
andykimpe Sunday 15 November 2015 at 3:15
andykimpe Anonymous

Warning

This update has not been approved yet by the team.
Use it at your own risk

Message

lol this is empty
 
c'est vide mdr
 
it's not like her better now?
 
c'est mieu comme sa non ?

Differences

@@ -0,0 +1,54 @@
+#!/bin/bash
+
+# Author : andykimpe andykimpe@gmail.com
+# Licence : GPLv2
+# Depend : none
+ 
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+ 
+TITLE="WinSCP"
+PREFIX="winscp"
+WORKING_WINE_VERSION="1.1.44"
+ 
+
+POL_SetupWindow_Init
+POL_Debug_Init
+ 
+POL_SetupWindow_presentation "$TITLE" "martinprikryl" "https://winscp.net" "andykimpe" "$PREFIX"
+
+ 
+POL_System_TmpCreate "$PREFIX"
+POL_System_SetArch "x86"
+POL_Wine_SelectPrefix "$PREFIX"
+POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
+ 
+[ -z "$POL_SELECTED_FILE" ] && POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
+ 
+if [ "$INSTALL_METHOD" = "DOWNLOAD" ]
+then
+cd $POL_System_TmpDir
+    # Pas de MD5, car le script detecte la derniere version automatiquement
+    POL_Download "http://prdownloads.sourceforge.net/winscp/winscp576setup.exe" "fd01b552fc471d4e13b0838784bebef6"
+    INSTALLER="$POL_System_TmpDir/winscp576setup.exe"
+elif [ "$INSTALL_METHOD" = "LOCAL" ]
+then
+    cd "$HOME"
+    POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
+    INSTALLER="$APP_ANSWER"
+fi
+ 
+if [ -n "$POL_SELECTED_FILE" ]
+then
+    INSTALLER="$POL_SELECTED_FILE"
+fi
+
+POL_Wine $INSTALLER /silent
+ 
+POL_System_TmpDelete
+ 
+POL_Shortcut "WinSCP.exe" "$TITLE"
+ 
+POL_SetupWindow_Close
+ 
+exit
\ No newline at end of file

New source code

#!/bin/bash

# Author : andykimpe andykimpe@gmail.com
# Licence : GPLv2
# Depend : none
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="WinSCP"
PREFIX="winscp"
WORKING_WINE_VERSION="1.1.44"
 

POL_SetupWindow_Init
POL_Debug_Init
 
POL_SetupWindow_presentation "$TITLE" "martinprikryl" "https://winscp.net" "andykimpe" "$PREFIX"

 
POL_System_TmpCreate "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
 
[ -z "$POL_SELECTED_FILE" ] && POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
 
if [ "$INSTALL_METHOD" = "DOWNLOAD" ]
then
cd $POL_System_TmpDir
    # Pas de MD5, car le script detecte la derniere version automatiquement
    POL_Download "http://prdownloads.sourceforge.net/winscp/winscp576setup.exe" "fd01b552fc471d4e13b0838784bebef6"
    INSTALLER="$POL_System_TmpDir/winscp576setup.exe"
elif [ "$INSTALL_METHOD" = "LOCAL" ]
then
    cd "$HOME"
    POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
    INSTALLER="$APP_ANSWER"
fi
 
if [ -n "$POL_SELECTED_FILE" ]
then
    INSTALLER="$POL_SELECTED_FILE"
fi

POL_Wine $INSTALLER /silent
 
POL_System_TmpDelete
 
POL_Shortcut "WinSCP.exe" "$TITLE"
 
POL_SetupWindow_Close
 
exit

Replies

Sunday 15 November 2015 at 14:44
Hi, my review:
WORKING_WINE_VERSION="1.1.44"

Wine 1.1 *very* old, did winscp stop working with newer versions?


[ -z "$POL_SELECTED_FILE" ] && POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"

if [ "$INSTALL_METHOD" = "DOWNLOAD" ]
...

Hence $INSTALL_METHOD is not defined if $POL_SELECTED_FILE is; I think it will work, because $INSTALL_METHOD value will be "", but the intent is somewhat hidden.


cd $POL_System_TmpDir
POL_Wine $INSTALLER /silent

Variables should be enclosed in double quotes to be totally safe (say, work if the installer is stored in a directory whose path contains a space somewhere).


# Pas de MD5, car le script detecte la derniere version automatiquement

Comment no longer match code (and it's recommended to use english for comments anyway)
Anonymous
Tuesday 17 November 2015 at 13:57
Hi, my review:
WORKING_WINE_VERSION="1.1.44"
Anonymous
Tuesday 17 November 2015 at 13:59
yes but it works with the totes from the version 1.1.4
but I chose this version because it is more ligther
Anonymous
Tuesday 17 November 2015 at 14:02
for comment is be clear because this is a comment that was shouted by Quentin is coming from the firefox script that I use as a base source
Anonymous
Tuesday 17 November 2015 at 14:02
cd $POL_System_TmpDir
POL_Wine $INSTALLER /silent

Variables should be enclosed in double quotes to be totally safe (say, work if the installer is stored in a directory whose path contains a space somewhere).
Anonymous
Tuesday 17 November 2015 at 14:05
winscp of the installer was created with Inno Setup see doc for the silent function

http://www.jrsoftware.org/ishelp/index.php?topic=setupcmdline

/SILENT, /VERYSILENT

Instructs Setup to be silent or very silent. When Setup is silent the wizard and the background window are not displayed but the installation progress window is. When a setup is very silent this installation progress window is not displayed. Everything else is normal so for example error messages during installation are displayed and the startup prompt is (if you haven't disabled it with DisableStartupPrompt or the '/SP-' command line option explained above).

If a restart is necessary and the '/NORESTART' command isn't used (see below) and Setup is silent, it will display a Reboot now? message box. If it's very silent it will reboot without asking.
Anonymous
Tuesday 17 November 2015 at 14:07
basically it avoids me to click Next several times in a row for nothing
so its saves time
Tuesday 17 November 2015 at 14:08
Never said anything about the parameter, only about enclosing $INSTALLER with double quotes
tsavino Friday 19 September 2014 at 20:35
tsavino Anonymous

Message

I just installed it on ununtu 14,04 and it works greatsmiley

Replies