Update to nextcloud 2.3.3.1

master v0.3
sheychen 2018-08-26 22:52:47 +02:00
parent c371abadf6
commit 19c8b9472f
50 changed files with 263 additions and 263 deletions

6
.gitignore vendored
View File

@ -1,3 +1,3 @@
*.7z *.7z
*.log *.log
Data/settings/ownCloudPortableSettings.ini Data/settings/ownCloudPortableSettings.ini

View File

@ -1,27 +1,27 @@
[Launch] [Launch]
ProgramExecutable=encryption\start-hidden.bat ProgramExecutable=encryption\start-hidden.bat
DirectoryMoveOK=True DirectoryMoveOK=True
CommandLineArguments="%PAL:Drive%\Documents\" CommandLineArguments="%PAL:Drive%\Documents\"
WorkingDirectory=%PAL:AppDir%\encryption WorkingDirectory=%PAL:AppDir%\encryption
WaitForEXE1=nextcloudPortableEncryptionHelper.exe WaitForEXE1=nextcloudPortableEncryptionHelper.exe
[Activate] [Activate]
Registry=True Registry=True
[RegistryKeys] [RegistryKeys]
nextcloudPortable=HKLM\SOFTWARE\Nextcloud GmbH\Nextcloud nextcloudPortable=HKLM\SOFTWARE\Nextcloud GmbH\Nextcloud
[DirectoriesMove] [DirectoriesMove]
AppData=%USERPROFILE%\AppData\Local\Nextcloud AppData=%USERPROFILE%\AppData\Local\Nextcloud
ProgramFiles=%ProgramFiles%\Nextcloud ProgramFiles=%ProgramFiles%\Nextcloud
-=%USERPROFILE%\Nextcloud -=%USERPROFILE%\Nextcloud
[DirectoriesCleanupIfEmpty] [DirectoriesCleanupIfEmpty]
1=%USERPROFILE%\Nextcloud 1=%USERPROFILE%\Nextcloud
[FileWrite1] [FileWrite1]
Type=INI Type=INI
File=%PAL:DataDir%\AppData\folders\nextcloud File=%PAL:DataDir%\AppData\folders\nextcloud
Section=nextcloud Section=nextcloud
Key=localPath Key=localPath
Value=%PAL:Drive%/Documents/nextcloud/ Value=%PAL:Drive%/Documents/nextcloud/

View File

@ -1,26 +1,26 @@
[Format] [Format]
Type=PortableApps.comFormat Type=PortableApps.comFormat
Version=3.5 Version=3.5
[Details] [Details]
Name=nextcloud Portable Name=nextcloud Portable
AppID=nextcloudPortable AppID=nextcloudPortable
Publisher=Sheychen Publisher=Sheychen
Homepage=https://wadza.fr Homepage=https://wadza.fr
Category=Internet Category=Internet
Description=nextcloud Client Description=nextcloud Client
Language=Multilingual Language=Multilingual
[License] [License]
Shareable=true Shareable=true
OpenSource=true OpenSource=true
Freeware=false Freeware=false
CommercialUse=true CommercialUse=true
[Version] [Version]
PackageVersion=2.3.1.8 PackageVersion=2.3.3.1
DisplayVersion=2.3 DisplayVersion=2.3
[Control] [Control]
Icons=1 Icons=1
Start=nextcloudPortable.exe Start=nextcloudPortable.exe

View File

@ -1,2 +1,2 @@
[DirectoriesToPreserve] [DirectoriesToPreserve]
PreserveDirectory1=Data PreserveDirectory1=Data

View File

@ -1,9 +1,9 @@
Windows Registry Editor Version 5.00 Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Nextcloud GmbH\Nextcloud] [HKEY_LOCAL_MACHINE\SOFTWARE\Nextcloud GmbH\Nextcloud]
@="C:\\Program Files\\\Nextcloud" @="C:\\Program Files\\\Nextcloud"
"VersionMajor"=dword:00000002 "VersionMajor"=dword:00000002
"VersionMinor"=dword:00000003 "VersionMinor"=dword:00000003
"VersionRevision"=dword:00000001 "VersionRevision"=dword:00000001
"VersionBuild"=dword:00000008 "VersionBuild"=dword:00000008

View File

@ -1,3 +1,3 @@
The files in this directory are necessary for the portable application to The files in this directory are necessary for the portable application to
function. There is normally no need to directly access or alter any of the function. There is normally no need to directly access or alter any of the
files within these directories. files within these directories.

View File

@ -1,40 +1,40 @@
set wShell = CreateObject("Wscript.Shell") set wShell = CreateObject("Wscript.Shell")
set oArgs = WScript.Arguments set oArgs = WScript.Arguments
' strPw = Password( "Please enter your password:" ) ' strPw = Password( "Please enter your password:" )
' WScript.Echo "Your password is: " & strPw ' WScript.Echo "Your password is: " & strPw
script = """" & oArgs.item(0) & """" script = """" & oArgs.item(0) & """"
scriptArgs = "" scriptArgs = ""
For i = 1 to oArgs.Count - 1 For i = 1 to oArgs.Count - 1
scriptArgs = scriptArgs & " """ & oArgs.item(i) & """" scriptArgs = scriptArgs & " """ & oArgs.item(i) & """"
Next Next
wShell.Run script & " " & scriptArgs, 0, False wShell.Run script & " " & scriptArgs, 0, False
Function Password( myPrompt ) Function Password( myPrompt )
' This function hides a password while it is being typed. ' This function hides a password while it is being typed.
' myPrompt is the text prompting the user to type a password. ' myPrompt is the text prompting the user to type a password.
' The function clears the prompt and returns the typed password. ' The function clears the prompt and returns the typed password.
' This code is based on Microsoft TechNet ScriptCenter "Mask Command Line Passwords" ' This code is based on Microsoft TechNet ScriptCenter "Mask Command Line Passwords"
' http://www.microsoft.com/technet/scriptcenter/scripts/default.mspx?mfr=true ' http://www.microsoft.com/technet/scriptcenter/scripts/default.mspx?mfr=true
' Standard housekeeping ' Standard housekeeping
Dim objPassword Dim objPassword
' Use ScriptPW.dll by creating an object ' Use ScriptPW.dll by creating an object
' THIS IS ONLY AVAILABLE IN WinXP !!! ' THIS IS ONLY AVAILABLE IN WinXP !!!
Set objPassword = CreateObject( "ScriptPW.Password" ) Set objPassword = CreateObject( "ScriptPW.Password" )
' Display the prompt text ' Display the prompt text
WScript.StdOut.Write myPrompt WScript.StdOut.Write myPrompt
' Return the typed password ' Return the typed password
Password = objPassword.GetPassword() Password = objPassword.GetPassword()
' Clear prompt ' Clear prompt
WScript.StdOut.Write String( Len( myPrompt ), Chr( 8 ) ) _ WScript.StdOut.Write String( Len( myPrompt ), Chr( 8 ) ) _
& Space( Len( myPrompt ) ) _ & Space( Len( myPrompt ) ) _
& String( Len( myPrompt ), Chr( 8 ) ) & String( Len( myPrompt ), Chr( 8 ) )
End Function End Function

View File

@ -1,31 +1,31 @@
7-Zip Extra 7-Zip Extra
~~~~~~~~~~~ ~~~~~~~~~~~
License for use and distribution License for use and distribution
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Copyright (C) 1999-2016 Igor Pavlov. Copyright (C) 1999-2016 Igor Pavlov.
7-Zip Extra files are under the GNU LGPL license. 7-Zip Extra files are under the GNU LGPL license.
Notes: Notes:
You can use 7-Zip Extra on any computer, including a computer in a commercial You can use 7-Zip Extra on any computer, including a computer in a commercial
organization. You don't need to register or pay for 7-Zip. organization. You don't need to register or pay for 7-Zip.
GNU LGPL information GNU LGPL information
-------------------- --------------------
This library is free software; you can redistribute it and/or This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version. version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details. Lesser General Public License for more details.
You can receive a copy of the GNU Lesser General Public License from You can receive a copy of the GNU Lesser General Public License from
http://www.gnu.org/ http://www.gnu.org/

View File

@ -1,27 +1,27 @@
 
[lang] [lang]
lang = lang =
[files] [files]
bat = bat =
exe = exe =
[opt] [opt]
ivi = 0 ivi = 0
dir = 0 dir = 0
tmp = 0 tmp = 0
enc = 0 enc = 0
pwd = pwd =
man = 0 man = 0
owr = 0 owr = 0
cmp = 0 cmp = 0
x64 = 0 x64 = 0
[inc] [inc]
ico = ico =
[inf] [inf]
ver = 0 ver = 0
vr1 = 1,0,0,0 vr1 = 1,0,0,0
vr2 = 1,0,0,0 vr2 = 1,0,0,0
vr3 = vr3 =
vr4 = vr4 =
vr5 = vr5 =
vr6 = vr6 =
vr7 = vr7 =

View File

@ -1,25 +1,25 @@
@echo off @echo off
set CFG=%USERPROFILE%\AppData\Local\nextcloud\nextcloud.cfg set CFG=%USERPROFILE%\AppData\Local\nextcloud\nextcloud.cfg
echo Nextcloud Setup echo Nextcloud Setup
echo Server Url: echo Server Url:
set /p URL= set /p URL=
echo Username: echo Username:
set /p USER= set /p USER=
echo [General] > %CFG% echo [General] > %CFG%
echo optionalDesktopNotifications=true >> %CFG% echo optionalDesktopNotifications=true >> %CFG%
echo [Accounts] >> %CFG% echo [Accounts] >> %CFG%
echo version=2 >> %CFG% echo version=2 >> %CFG%
echo 0\url=%URL% >> %CFG% echo 0\url=%URL% >> %CFG%
echo 0\http_user=%USER% >> %CFG% echo 0\http_user=%USER% >> %CFG%
echo 0\authType=http >> %CFG% echo 0\authType=http >> %CFG%
echo 0\user=%USER% >> %CFG% echo 0\user=%USER% >> %CFG%
echo 0\Folders\1\localPath=../../Data/nextcloud/ >> %CFG% echo 0\Folders\1\localPath=../../Data/nextcloud/ >> %CFG%
echo 0\Folders\1\targetPath=/ >> %CFG% echo 0\Folders\1\targetPath=/ >> %CFG%
echo 0\Folders\1\paused=true >> %CFG% echo 0\Folders\1\paused=true >> %CFG%
echo 0\Folders\1\ignoreHiddenFiles=true >> %CFG% echo 0\Folders\1\ignoreHiddenFiles=true >> %CFG%
exit exit

View File

@ -1,6 +1,6 @@
@echo off @echo off
:: Get the password :: Get the password
powershell -Command $pword = read-host "Enter password" -AsSecureString ; $BSTR=[System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($pword) ; [System.Runtime.InteropServices.Marshal]::PtrToStringAuto($BSTR) > .tmp.txt & set /p passwd=<.tmp.txt & del .tmp.txt powershell -Command $pword = read-host "Enter password" -AsSecureString ; $BSTR=[System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($pword) ; [System.Runtime.InteropServices.Marshal]::PtrToStringAuto($BSTR) > .tmp.txt & set /p passwd=<.tmp.txt & del .tmp.txt
wscript.exe hidden.vbs nextcloudPortableEncryptionHelper.exe %passwd% %1 wscript.exe hidden.vbs nextcloudPortableEncryptionHelper.exe %passwd% %1

View File

@ -1,38 +1,38 @@
@echo off @echo off
set CONFIG_ARCHIV="..\..\Data\config.7z" set CONFIG_ARCHIV="..\..\Data\config.7z"
set DATA_ARCHIV="..\..\Data\nextcloud.7z" set DATA_ARCHIV="..\..\Data\nextcloud.7z"
:: [ 0 | 1 | 3 | 5 | 7 | 9 ] :: [ 0 | 1 | 3 | 5 | 7 | 9 ]
set COMPRESSION=0 set COMPRESSION=0
set SEVENEXE="libs\7-Zip\7za.exe" set SEVENEXE="libs\7-Zip\7za.exe"
set PASSWD=%1 set PASSWD=%1
set RUNTIME_CONFIG_DIR=%USERPROFILE%\AppData\Local\nextcloud set RUNTIME_CONFIG_DIR=%USERPROFILE%\AppData\Local\nextcloud
set RUNTIME_NEXTCLOUD_DATA_DIR="..\..\Data\nextcloud" set RUNTIME_NEXTCLOUD_DATA_DIR="..\..\Data\nextcloud"
set LOG_FILE="..\..\Data\nextcloudPortableEncryption.log" set LOG_FILE="..\..\Data\nextcloudPortableEncryption.log"
echo This is the nextcloud Portable encryption starter script! > %LOG_FILE% echo This is the nextcloud Portable encryption starter script! > %LOG_FILE%
if not exist %CONFIG_ARCHIV% ( if not exist %CONFIG_ARCHIV% (
echo Can't find %CONFIG_ARCHIV% >> %LOG_FILE% echo Can't find %CONFIG_ARCHIV% >> %LOG_FILE%
START /WAIT setup.bat START /WAIT setup.bat
) else ( ) else (
echo Extracting portable nextcloud client config and data... >> %LOG_FILE% echo Extracting portable nextcloud client config and data... >> %LOG_FILE%
%SEVENEXE% x %CONFIG_ARCHIV% -o%RUNTIME_CONFIG_DIR% -p%PASSWD% -y >> %LOG_FILE% || (start cmd /C "echo Wrong Password & pause" & exit) %SEVENEXE% x %CONFIG_ARCHIV% -o%RUNTIME_CONFIG_DIR% -p%PASSWD% -y >> %LOG_FILE% || (start cmd /C "echo Wrong Password & pause" & exit)
%SEVENEXE% x %DATA_ARCHIV% -o%RUNTIME_NEXTCLOUD_DATA_DIR% -r -p%PASSWD% -y >> %LOG_FILE% || (start cmd /C "echo Wrong Password & pause" & exit) %SEVENEXE% x %DATA_ARCHIV% -o%RUNTIME_NEXTCLOUD_DATA_DIR% -r -p%PASSWD% -y >> %LOG_FILE% || (start cmd /C "echo Wrong Password & pause" & exit)
del /s /f /q %DATA_ARCHIV% del /s /f /q %DATA_ARCHIV%
) )
echo Starting nextcloud client. >> %LOG_FILE% echo Starting nextcloud client. >> %LOG_FILE%
START /WAIT ..\nextcloud\nextcloud.exe >> %LOG_FILE% START /WAIT ..\nextcloud\nextcloud.exe >> %LOG_FILE%
echo Encrypting nextcloud client config and data... >> %LOG_FILE% echo Encrypting nextcloud client config and data... >> %LOG_FILE%
:: Explanation: :: Explanation:
:: -mhe to encrypt headers so nobody can browse the archive :: -mhe to encrypt headers so nobody can browse the archive
:: -mx0 to not compress the archiv (only for performance) :: -mx0 to not compress the archiv (only for performance)
%SEVENEXE% u %CONFIG_ARCHIV% %RUNTIME_CONFIG_DIR%\nextcloud.cfg -mx%COMPRESSION% -mhe -p%PASSWD% -y >> %LOG_FILE% %SEVENEXE% u %CONFIG_ARCHIV% %RUNTIME_CONFIG_DIR%\nextcloud.cfg -mx%COMPRESSION% -mhe -p%PASSWD% -y >> %LOG_FILE%
%SEVENEXE% a %DATA_ARCHIV% %RUNTIME_NEXTCLOUD_DATA_DIR%\* -mx%COMPRESSION% -mhe -p%PASSWD% -y >> %LOG_FILE% %SEVENEXE% a %DATA_ARCHIV% %RUNTIME_NEXTCLOUD_DATA_DIR%\* -mx%COMPRESSION% -mhe -p%PASSWD% -y >> %LOG_FILE%
echo Securely removing data from this computer... >> %LOG_FILE% echo Securely removing data from this computer... >> %LOG_FILE%
del /s /f /q %RUNTIME_NEXTCLOUD_DATA_DIR% & rd /s /q %RUNTIME_NEXTCLOUD_DATA_DIR% >> %LOG_FILE% del /s /f /q %RUNTIME_NEXTCLOUD_DATA_DIR% & rd /s /q %RUNTIME_NEXTCLOUD_DATA_DIR% >> %LOG_FILE%
del /s /f /q %RUNTIME_CONFIG_DIR%\nextcloud.cfg >> %LOG_FILE% del /s /f /q %RUNTIME_CONFIG_DIR%\nextcloud.cfg >> %LOG_FILE%
:exit :exit

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,31 +1,31 @@
# Encrypted Nextcloud Portable Client # Encrypted Nextcloud Portable Client
This is a portable Nextcloud client that runs on Windows. This is a portable Nextcloud client that runs on Windows.
At starttime a Batch file is executed and will prompt you for a password. At starttime a Batch file is executed and will prompt you for a password.
On first run this will set your password to encrypt the Nextcloud client configuration (host, user, password) and the data stored in your portable `Documents` folder. On first run this will set your password to encrypt the Nextcloud client configuration (host, user, password) and the data stored in your portable `Documents` folder.
## Install ## Install
1. Install 'nextcloudPortable_X.X-X.paf.exe' with PortableApps Plateform 1. Install 'nextcloudPortable_X.X-X.paf.exe' with PortableApps Plateform
2. Run Nextcloud 2. Run Nextcloud
3. Enter a password 3. Enter a password
4. Setup nextcloud 4. Setup nextcloud
5. Resume sync 5. Resume sync
## Used software ## Used software
### Encrypted ownCloud Portable Client ### Encrypted ownCloud Portable Client
https://github.com/BennyLi/encryptedOwnCloudPortableClient. Thanks to the author. https://github.com/BennyLi/encryptedOwnCloudPortableClient. Thanks to the author.
### Nextcloud ### Nextcloud
Currently packaged is the Nextcloud client version 2.3.1 from https://nextcloud.com/install/#install-clients. Currently packaged is the Nextcloud client version 2.3.3 from https://nextcloud.com/install/#install-clients.
### 7-Zip ### 7-Zip
For encrypted packaging a 7za.exe is included. This is the official portable one in version 16.04 from http://www.7-zip.org/download.html. For encrypted packaging a 7za.exe is included. This is the official portable one in version 16.04 from http://www.7-zip.org/download.html.
If you ask yourself if 7-Zip is secure enough, please reefer to http://security.stackexchange.com/questions/29375/is-7-zips-aes-encryption-just-as-secure-as-truecrypts-version. If you ask yourself if 7-Zip is secure enough, please reefer to http://security.stackexchange.com/questions/29375/is-7-zips-aes-encryption-just-as-secure-as-truecrypts-version.
### Bat To Exe Converter ### Bat To Exe Converter
To convert the start.bat to .exe I used Bat To Exe Converter version 2.2.0.0 from http://www.f2ko.de/en/b2e.php. To convert the start.bat to .exe I used Bat To Exe Converter version 2.2.0.0 from http://www.f2ko.de/en/b2e.php.
Currently I need an .exe file because the PortableApps Launcher cannot handle .bat files with the [WaitForEXEN](http://portableapps.com/manuals/PortableApps.comLauncher/ref/launcher.ini/launch.html#waitforexen) setting. Currently I need an .exe file because the PortableApps Launcher cannot handle .bat files with the [WaitForEXEN](http://portableapps.com/manuals/PortableApps.comLauncher/ref/launcher.ini/launch.html#waitforexen) setting.