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
*.log
Data/settings/ownCloudPortableSettings.ini
*.7z
*.log
Data/settings/ownCloudPortableSettings.ini

View File

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

View File

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

View File

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

View File

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

View File

@ -1,3 +1,3 @@
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
files within these directories.
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
files within these directories.

View File

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

View File

@ -1,31 +1,31 @@
7-Zip Extra
~~~~~~~~~~~
License for use and distribution
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Copyright (C) 1999-2016 Igor Pavlov.
7-Zip Extra files are under the GNU LGPL license.
Notes:
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.
GNU LGPL information
--------------------
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
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,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You can receive a copy of the GNU Lesser General Public License from
http://www.gnu.org/
7-Zip Extra
~~~~~~~~~~~
License for use and distribution
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Copyright (C) 1999-2016 Igor Pavlov.
7-Zip Extra files are under the GNU LGPL license.
Notes:
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.
GNU LGPL information
--------------------
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
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,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You can receive a copy of the GNU Lesser General Public License from
http://www.gnu.org/

View File

@ -1,27 +1,27 @@

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

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

View File

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

View File

@ -1,6 +1,6 @@
@echo off
:: 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
@echo off
:: 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
wscript.exe hidden.vbs nextcloudPortableEncryptionHelper.exe %passwd% %1

View File

@ -1,38 +1,38 @@
@echo off
set CONFIG_ARCHIV="..\..\Data\config.7z"
set DATA_ARCHIV="..\..\Data\nextcloud.7z"
:: [ 0 | 1 | 3 | 5 | 7 | 9 ]
set COMPRESSION=0
set SEVENEXE="libs\7-Zip\7za.exe"
set PASSWD=%1
set RUNTIME_CONFIG_DIR=%USERPROFILE%\AppData\Local\nextcloud
set RUNTIME_NEXTCLOUD_DATA_DIR="..\..\Data\nextcloud"
set LOG_FILE="..\..\Data\nextcloudPortableEncryption.log"
echo This is the nextcloud Portable encryption starter script! > %LOG_FILE%
if not exist %CONFIG_ARCHIV% (
echo Can't find %CONFIG_ARCHIV% >> %LOG_FILE%
START /WAIT setup.bat
) else (
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 %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%
)
echo Starting nextcloud client. >> %LOG_FILE%
START /WAIT ..\nextcloud\nextcloud.exe >> %LOG_FILE%
echo Encrypting nextcloud client config and data... >> %LOG_FILE%
:: Explanation:
:: -mhe to encrypt headers so nobody can browse the archive
:: -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% a %DATA_ARCHIV% %RUNTIME_NEXTCLOUD_DATA_DIR%\* -mx%COMPRESSION% -mhe -p%PASSWD% -y >> %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_CONFIG_DIR%\nextcloud.cfg >> %LOG_FILE%
@echo off
set CONFIG_ARCHIV="..\..\Data\config.7z"
set DATA_ARCHIV="..\..\Data\nextcloud.7z"
:: [ 0 | 1 | 3 | 5 | 7 | 9 ]
set COMPRESSION=0
set SEVENEXE="libs\7-Zip\7za.exe"
set PASSWD=%1
set RUNTIME_CONFIG_DIR=%USERPROFILE%\AppData\Local\nextcloud
set RUNTIME_NEXTCLOUD_DATA_DIR="..\..\Data\nextcloud"
set LOG_FILE="..\..\Data\nextcloudPortableEncryption.log"
echo This is the nextcloud Portable encryption starter script! > %LOG_FILE%
if not exist %CONFIG_ARCHIV% (
echo Can't find %CONFIG_ARCHIV% >> %LOG_FILE%
START /WAIT setup.bat
) else (
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 %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%
)
echo Starting nextcloud client. >> %LOG_FILE%
START /WAIT ..\nextcloud\nextcloud.exe >> %LOG_FILE%
echo Encrypting nextcloud client config and data... >> %LOG_FILE%
:: Explanation:
:: -mhe to encrypt headers so nobody can browse the archive
:: -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% a %DATA_ARCHIV% %RUNTIME_NEXTCLOUD_DATA_DIR%\* -mx%COMPRESSION% -mhe -p%PASSWD% -y >> %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_CONFIG_DIR%\nextcloud.cfg >> %LOG_FILE%
: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
This is a portable Nextcloud client that runs on Windows.
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.
## Install
1. Install 'nextcloudPortable_X.X-X.paf.exe' with PortableApps Plateform
2. Run Nextcloud
3. Enter a password
4. Setup nextcloud
5. Resume sync
## Used software
### Encrypted ownCloud Portable Client
https://github.com/BennyLi/encryptedOwnCloudPortableClient. Thanks to the author.
### Nextcloud
Currently packaged is the Nextcloud client version 2.3.1 from https://nextcloud.com/install/#install-clients.
### 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.
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
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.
# Encrypted Nextcloud Portable Client
This is a portable Nextcloud client that runs on Windows.
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.
## Install
1. Install 'nextcloudPortable_X.X-X.paf.exe' with PortableApps Plateform
2. Run Nextcloud
3. Enter a password
4. Setup nextcloud
5. Resume sync
## Used software
### Encrypted ownCloud Portable Client
https://github.com/BennyLi/encryptedOwnCloudPortableClient. Thanks to the author.
### Nextcloud
Currently packaged is the Nextcloud client version 2.3.3 from https://nextcloud.com/install/#install-clients.
### 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.
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
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.