Update proj and import PackageEntry
This commit is contained in:
parent
2d210d0f06
commit
c35306338d
144
WAPT/wapt.psproj
144
WAPT/wapt.psproj
|
@ -1,5 +1,5 @@
|
||||||
[PyScripter]
|
[PyScripter]
|
||||||
Version=3.3.2.0
|
Version=3.6.4.0
|
||||||
|
|
||||||
[Project]
|
[Project]
|
||||||
ClassName=TProjectRootNode
|
ClassName=TProjectRootNode
|
||||||
|
@ -23,18 +23,34 @@ FileName=C:\Program Files (x86)\wapt\setuphelpers.py
|
||||||
|
|
||||||
[Project\ChildNodes\Node0\ChildNodes\Node0\ChildNodes\Node2]
|
[Project\ChildNodes\Node0\ChildNodes\Node0\ChildNodes\Node2]
|
||||||
ClassName=TProjectFileNode
|
ClassName=TProjectFileNode
|
||||||
FileName=C:\Program Files (x86)\wapt\wapt-get.ini
|
FileName=C:\Program Files (x86)\wapt\setuphelpers_linux.py
|
||||||
|
|
||||||
[Project\ChildNodes\Node0\ChildNodes\Node0\ChildNodes\Node3]
|
[Project\ChildNodes\Node0\ChildNodes\Node0\ChildNodes\Node3]
|
||||||
ClassName=TProjectFileNode
|
ClassName=TProjectFileNode
|
||||||
FileName=C:\Program Files (x86)\wapt\wapt-get.py
|
FileName=C:\Program Files (x86)\wapt\setuphelpers_macos.py
|
||||||
|
|
||||||
[Project\ChildNodes\Node0\ChildNodes\Node0\ChildNodes\Node4]
|
[Project\ChildNodes\Node0\ChildNodes\Node0\ChildNodes\Node4]
|
||||||
ClassName=TProjectFileNode
|
ClassName=TProjectFileNode
|
||||||
|
FileName=C:\Program Files (x86)\wapt\setuphelpers_unix.py
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node0\ChildNodes\Node0\ChildNodes\Node5]
|
||||||
|
ClassName=TProjectFileNode
|
||||||
|
FileName=C:\Program Files (x86)\wapt\setuphelpers_windows.py
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node0\ChildNodes\Node0\ChildNodes\Node6]
|
||||||
|
ClassName=TProjectFileNode
|
||||||
|
FileName=C:\Program Files (x86)\wapt\wapt-get.ini
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node0\ChildNodes\Node0\ChildNodes\Node7]
|
||||||
|
ClassName=TProjectFileNode
|
||||||
|
FileName=C:\Program Files (x86)\wapt\wapt-get.py
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node0\ChildNodes\Node0\ChildNodes\Node8]
|
||||||
|
ClassName=TProjectFileNode
|
||||||
FileName=C:\Program Files (x86)\wapt\waptpackage.py
|
FileName=C:\Program Files (x86)\wapt\waptpackage.py
|
||||||
|
|
||||||
[Project\ChildNodes\Node0\ChildNodes\Node0\ChildNodes]
|
[Project\ChildNodes\Node0\ChildNodes\Node0\ChildNodes]
|
||||||
Count=5
|
Count=9
|
||||||
|
|
||||||
[Project\ChildNodes\Node0\ChildNodes\Node1]
|
[Project\ChildNodes\Node0\ChildNodes\Node1]
|
||||||
ClassName=TProjectFileNode
|
ClassName=TProjectFileNode
|
||||||
|
@ -56,10 +72,11 @@ ClassName=TProjectRunConfiguationsNode
|
||||||
|
|
||||||
[Project\ChildNodes\Node1\ChildNodes\Node0]
|
[Project\ChildNodes\Node1\ChildNodes\Node0]
|
||||||
ClassName=TProjectRunConfiguationNode
|
ClassName=TProjectRunConfiguationNode
|
||||||
Name=install
|
Name=WAPT: install
|
||||||
|
|
||||||
[Project\ChildNodes\Node1\ChildNodes\Node0\RunConfig]
|
[Project\ChildNodes\Node1\ChildNodes\Node0\RunConfig]
|
||||||
ScriptName=C:\Program Files (x86)\wapt\wapt-get.py
|
ScriptName=C:\Program Files (x86)\wapt\wapt-get.py
|
||||||
|
Description=Launch package installation.
|
||||||
EngineType=peRemote
|
EngineType=peRemote
|
||||||
ReinitializeBeforeRun=TRUE
|
ReinitializeBeforeRun=TRUE
|
||||||
Parameters=install "$[Project-Path].."
|
Parameters=install "$[Project-Path].."
|
||||||
|
@ -74,15 +91,14 @@ Description=Run script using an external Python Interpreter
|
||||||
ApplicationName=$[PythonExe-Short]
|
ApplicationName=$[PythonExe-Short]
|
||||||
Parameters=$[ActiveScript-Short]
|
Parameters=$[ActiveScript-Short]
|
||||||
WorkingDirectory=$[ActiveScript-Dir]
|
WorkingDirectory=$[ActiveScript-Dir]
|
||||||
ShortCut=0
|
|
||||||
MessagesFormat=$[FileName] $[LineNumber]
|
|
||||||
|
|
||||||
[Project\ChildNodes\Node1\ChildNodes\Node1]
|
[Project\ChildNodes\Node1\ChildNodes\Node1]
|
||||||
ClassName=TProjectRunConfiguationNode
|
ClassName=TProjectRunConfiguationNode
|
||||||
Name=remove
|
Name=WAPT: remove
|
||||||
|
|
||||||
[Project\ChildNodes\Node1\ChildNodes\Node1\RunConfig]
|
[Project\ChildNodes\Node1\ChildNodes\Node1\RunConfig]
|
||||||
ScriptName=C:\Program Files (x86)\wapt\wapt-get.py
|
ScriptName=C:\Program Files (x86)\wapt\wapt-get.py
|
||||||
|
Description=Launch uninstallation (the uninstallation code found in local wapt database, remember to launch after an installation).
|
||||||
EngineType=peRemote
|
EngineType=peRemote
|
||||||
ReinitializeBeforeRun=TRUE
|
ReinitializeBeforeRun=TRUE
|
||||||
Parameters=remove "$[Project-Path].."
|
Parameters=remove "$[Project-Path].."
|
||||||
|
@ -97,18 +113,17 @@ Description=Run script using an external Python Interpreter
|
||||||
ApplicationName=$[PythonExe-Short]
|
ApplicationName=$[PythonExe-Short]
|
||||||
Parameters=$[ActiveScript-Short]
|
Parameters=$[ActiveScript-Short]
|
||||||
WorkingDirectory=$[ActiveScript-Dir]
|
WorkingDirectory=$[ActiveScript-Dir]
|
||||||
ShortCut=0
|
|
||||||
MessagesFormat=$[FileName] $[LineNumber]
|
|
||||||
|
|
||||||
[Project\ChildNodes\Node1\ChildNodes\Node2]
|
[Project\ChildNodes\Node1\ChildNodes\Node2]
|
||||||
ClassName=TProjectRunConfiguationNode
|
ClassName=TProjectRunConfiguationNode
|
||||||
Name=session-setup
|
Name=WAPT: uninstall
|
||||||
|
|
||||||
[Project\ChildNodes\Node1\ChildNodes\Node2\RunConfig]
|
[Project\ChildNodes\Node1\ChildNodes\Node2\RunConfig]
|
||||||
ScriptName=C:\Program Files (x86)\wapt\wapt-get.py
|
ScriptName=C:\Program Files (x86)\wapt\wapt-get.py
|
||||||
|
Description=Launch uninstallation code (for debugging purpose, it only runs the code of uninstall function).
|
||||||
EngineType=peRemote
|
EngineType=peRemote
|
||||||
ReinitializeBeforeRun=TRUE
|
ReinitializeBeforeRun=TRUE
|
||||||
Parameters=session-setup "$[Project-Path].."
|
Parameters=uninstall "$[Project-Path].."
|
||||||
WorkingDir=$[Project-Path]..
|
WorkingDir=$[Project-Path]..
|
||||||
WriteOutputToFile=FALSE
|
WriteOutputToFile=FALSE
|
||||||
OutputFileName=$[ActiveScript-NoExt].log
|
OutputFileName=$[ActiveScript-NoExt].log
|
||||||
|
@ -119,19 +134,18 @@ Caption=External Run
|
||||||
Description=Run script using an external Python Interpreter
|
Description=Run script using an external Python Interpreter
|
||||||
ApplicationName=$[PythonExe-Short]
|
ApplicationName=$[PythonExe-Short]
|
||||||
Parameters=$[ActiveScript-Short]
|
Parameters=$[ActiveScript-Short]
|
||||||
WorkingDirectory=$[ActiveScript-Dir]
|
WorkingDirectory=$[Project-Path]..
|
||||||
ShortCut=0
|
|
||||||
MessagesFormat=$[FileName] $[LineNumber]
|
|
||||||
|
|
||||||
[Project\ChildNodes\Node1\ChildNodes\Node3]
|
[Project\ChildNodes\Node1\ChildNodes\Node3]
|
||||||
ClassName=TProjectRunConfiguationNode
|
ClassName=TProjectRunConfiguationNode
|
||||||
Name=update
|
Name=WAPT: session-setup
|
||||||
|
|
||||||
[Project\ChildNodes\Node1\ChildNodes\Node3\RunConfig]
|
[Project\ChildNodes\Node1\ChildNodes\Node3\RunConfig]
|
||||||
ScriptName=C:\Program Files (x86)\wapt\wapt-get.py
|
ScriptName=C:\Program Files (x86)\wapt\wapt-get.py
|
||||||
|
Description=Launch session-setup (it runs directly as current user).
|
||||||
EngineType=peRemote
|
EngineType=peRemote
|
||||||
ReinitializeBeforeRun=TRUE
|
ReinitializeBeforeRun=TRUE
|
||||||
Parameters=update
|
Parameters=session-setup "$[Project-Path].."
|
||||||
WorkingDir=$[Project-Path]..
|
WorkingDir=$[Project-Path]..
|
||||||
WriteOutputToFile=FALSE
|
WriteOutputToFile=FALSE
|
||||||
OutputFileName=$[ActiveScript-NoExt].log
|
OutputFileName=$[ActiveScript-NoExt].log
|
||||||
|
@ -143,19 +157,18 @@ Description=Run script using an external Python Interpreter
|
||||||
ApplicationName=$[PythonExe-Short]
|
ApplicationName=$[PythonExe-Short]
|
||||||
Parameters=$[ActiveScript-Short]
|
Parameters=$[ActiveScript-Short]
|
||||||
WorkingDirectory=$[ActiveScript-Dir]
|
WorkingDirectory=$[ActiveScript-Dir]
|
||||||
ShortCut=0
|
|
||||||
MessagesFormat=$[FileName] $[LineNumber]
|
|
||||||
|
|
||||||
[Project\ChildNodes\Node1\ChildNodes\Node4]
|
[Project\ChildNodes\Node1\ChildNodes\Node4]
|
||||||
ClassName=TProjectRunConfiguationNode
|
ClassName=TProjectRunConfiguationNode
|
||||||
Name=upgrade
|
Name=WAPT: audit
|
||||||
|
|
||||||
[Project\ChildNodes\Node1\ChildNodes\Node4\RunConfig]
|
[Project\ChildNodes\Node1\ChildNodes\Node4\RunConfig]
|
||||||
ScriptName=C:\Program Files (x86)\wapt\wapt-get.py
|
ScriptName=C:\Program Files (x86)\wapt\wapt-get.py
|
||||||
|
Description=Launch package audit.
|
||||||
EngineType=peRemote
|
EngineType=peRemote
|
||||||
ReinitializeBeforeRun=TRUE
|
ReinitializeBeforeRun=TRUE
|
||||||
Parameters=-f upgrade
|
Parameters=audit -f "$[Project-Path].."
|
||||||
WorkingDir=$[ActiveScript-Dir]
|
WorkingDir=$[Project-Path]..
|
||||||
WriteOutputToFile=FALSE
|
WriteOutputToFile=FALSE
|
||||||
OutputFileName=$[ActiveScript-NoExt].log
|
OutputFileName=$[ActiveScript-NoExt].log
|
||||||
AppendToFile=FALSE
|
AppendToFile=FALSE
|
||||||
|
@ -166,18 +179,17 @@ Description=Run script using an external Python Interpreter
|
||||||
ApplicationName=$[PythonExe-Short]
|
ApplicationName=$[PythonExe-Short]
|
||||||
Parameters=$[ActiveScript-Short]
|
Parameters=$[ActiveScript-Short]
|
||||||
WorkingDirectory=$[ActiveScript-Dir]
|
WorkingDirectory=$[ActiveScript-Dir]
|
||||||
ShortCut=0
|
|
||||||
MessagesFormat=$[FileName] $[LineNumber]
|
|
||||||
|
|
||||||
[Project\ChildNodes\Node1\ChildNodes\Node5]
|
[Project\ChildNodes\Node1\ChildNodes\Node5]
|
||||||
ClassName=TProjectRunConfiguationNode
|
ClassName=TProjectRunConfiguationNode
|
||||||
Name=-i build-upload
|
Name=WAPT: update-package
|
||||||
|
|
||||||
[Project\ChildNodes\Node1\ChildNodes\Node5\RunConfig]
|
[Project\ChildNodes\Node1\ChildNodes\Node5\RunConfig]
|
||||||
ScriptName=C:\Program Files (x86)\wapt\wapt-get.py
|
ScriptName=C:\Program Files (x86)\wapt\wapt-get.py
|
||||||
|
Description=Launch update_package (it usually serve to update binaries of the package).
|
||||||
EngineType=peRemote
|
EngineType=peRemote
|
||||||
ReinitializeBeforeRun=TRUE
|
ReinitializeBeforeRun=TRUE
|
||||||
Parameters=-i build-upload "$[Project-Path].."
|
Parameters=update-package-sources "$[Project-Path].."
|
||||||
WorkingDir=$[Project-Path]..
|
WorkingDir=$[Project-Path]..
|
||||||
WriteOutputToFile=FALSE
|
WriteOutputToFile=FALSE
|
||||||
OutputFileName=$[ActiveScript-NoExt].log
|
OutputFileName=$[ActiveScript-NoExt].log
|
||||||
|
@ -189,18 +201,17 @@ Description=Run script using an external Python Interpreter
|
||||||
ApplicationName=$[PythonExe-Short]
|
ApplicationName=$[PythonExe-Short]
|
||||||
Parameters=$[ActiveScript-Short]
|
Parameters=$[ActiveScript-Short]
|
||||||
WorkingDirectory=$[ActiveScript-Dir]
|
WorkingDirectory=$[ActiveScript-Dir]
|
||||||
ShortCut=0
|
|
||||||
MessagesFormat=$[FileName] $[LineNumber]
|
|
||||||
|
|
||||||
[Project\ChildNodes\Node1\ChildNodes\Node6]
|
[Project\ChildNodes\Node1\ChildNodes\Node6]
|
||||||
ClassName=TProjectRunConfiguationNode
|
ClassName=TProjectRunConfiguationNode
|
||||||
Name=svn update
|
Name=WAPT: -i build-upload
|
||||||
|
|
||||||
[Project\ChildNodes\Node1\ChildNodes\Node6\RunConfig]
|
[Project\ChildNodes\Node1\ChildNodes\Node6\RunConfig]
|
||||||
ScriptName=C:\Program Files (x86)\wapt\wapt-get.py
|
ScriptName=C:\Program Files (x86)\wapt\wapt-get.py
|
||||||
|
Description=Build and upload package to the waptserver.
|
||||||
EngineType=peRemote
|
EngineType=peRemote
|
||||||
ReinitializeBeforeRun=TRUE
|
ReinitializeBeforeRun=TRUE
|
||||||
Parameters=sources "$[Project-Path].."
|
Parameters=--use-gui -i build-upload "$[Project-Path].."
|
||||||
WorkingDir=$[Project-Path]..
|
WorkingDir=$[Project-Path]..
|
||||||
WriteOutputToFile=FALSE
|
WriteOutputToFile=FALSE
|
||||||
OutputFileName=$[ActiveScript-NoExt].log
|
OutputFileName=$[ActiveScript-NoExt].log
|
||||||
|
@ -212,80 +223,9 @@ Description=Run script using an external Python Interpreter
|
||||||
ApplicationName=$[PythonExe-Short]
|
ApplicationName=$[PythonExe-Short]
|
||||||
Parameters=$[ActiveScript-Short]
|
Parameters=$[ActiveScript-Short]
|
||||||
WorkingDirectory=$[ActiveScript-Dir]
|
WorkingDirectory=$[ActiveScript-Dir]
|
||||||
ShortCut=0
|
|
||||||
MessagesFormat=$[FileName] $[LineNumber]
|
|
||||||
|
|
||||||
[Project\ChildNodes\Node1\ChildNodes\Node7]
|
|
||||||
ClassName=TProjectRunConfiguationNode
|
|
||||||
Name=uninstall
|
|
||||||
|
|
||||||
[Project\ChildNodes\Node1\ChildNodes\Node7\RunConfig]
|
|
||||||
ScriptName=C:\Program Files (x86)\wapt\wapt-get.py
|
|
||||||
EngineType=peRemote
|
|
||||||
ReinitializeBeforeRun=TRUE
|
|
||||||
Parameters=uninstall "$[Project-Path].."
|
|
||||||
WorkingDir=$[Project-Path]..
|
|
||||||
WriteOutputToFile=FALSE
|
|
||||||
OutputFileName=$[ActiveScript-NoExt].log
|
|
||||||
AppendToFile=FALSE
|
|
||||||
|
|
||||||
[Project\ChildNodes\Node1\ChildNodes\Node7\RunConfig\ExternalRun]
|
|
||||||
Caption=External Run
|
|
||||||
Description=Run script using an external Python Interpreter
|
|
||||||
ApplicationName=$[PythonExe-Short]
|
|
||||||
Parameters=$[ActiveScript-Short]
|
|
||||||
WorkingDirectory=$[Project-Path]..
|
|
||||||
ShortCut=0
|
|
||||||
MessagesFormat=$[FileName] $[LineNumber]
|
|
||||||
|
|
||||||
[Project\ChildNodes\Node1\ChildNodes\Node8]
|
|
||||||
ClassName=TProjectRunConfiguationNode
|
|
||||||
Name=update-package-sources
|
|
||||||
|
|
||||||
[Project\ChildNodes\Node1\ChildNodes\Node8\RunConfig]
|
|
||||||
ScriptName=C:\Program Files (x86)\wapt\wapt-get.py
|
|
||||||
EngineType=peRemote
|
|
||||||
ReinitializeBeforeRun=TRUE
|
|
||||||
Parameters=update-package-sources "$[Project-Path].."
|
|
||||||
WorkingDir=$[Project-Path]..
|
|
||||||
WriteOutputToFile=FALSE
|
|
||||||
OutputFileName=$[ActiveScript-NoExt].log
|
|
||||||
AppendToFile=FALSE
|
|
||||||
|
|
||||||
[Project\ChildNodes\Node1\ChildNodes\Node8\RunConfig\ExternalRun]
|
|
||||||
Caption=External Run
|
|
||||||
Description=Run script using an external Python Interpreter
|
|
||||||
ApplicationName=$[PythonExe-Short]
|
|
||||||
Parameters=$[ActiveScript-Short]
|
|
||||||
WorkingDirectory=$[ActiveScript-Dir]
|
|
||||||
ShortCut=0
|
|
||||||
MessagesFormat=$[FileName] $[LineNumber]
|
|
||||||
|
|
||||||
[Project\ChildNodes\Node1\ChildNodes\Node9]
|
|
||||||
ClassName=TProjectRunConfiguationNode
|
|
||||||
Name=audit
|
|
||||||
|
|
||||||
[Project\ChildNodes\Node1\ChildNodes\Node9\RunConfig]
|
|
||||||
ScriptName=C:\Program Files (x86)\wapt\wapt-get.py
|
|
||||||
EngineType=peRemote
|
|
||||||
ReinitializeBeforeRun=TRUE
|
|
||||||
Parameters=audit "$[Project-Path].."
|
|
||||||
WorkingDir=$[Project-Path]..
|
|
||||||
WriteOutputToFile=FALSE
|
|
||||||
OutputFileName=$[ActiveScript-NoExt].log
|
|
||||||
AppendToFile=FALSE
|
|
||||||
|
|
||||||
[Project\ChildNodes\Node1\ChildNodes\Node9\RunConfig\ExternalRun]
|
|
||||||
Caption=External Run
|
|
||||||
Description=Run script using an external Python Interpreter
|
|
||||||
ApplicationName=$[PythonExe-Short]
|
|
||||||
Parameters=$[ActiveScript-Short]
|
|
||||||
WorkingDirectory=$[ActiveScript-Dir]
|
|
||||||
ShortCut=0
|
|
||||||
MessagesFormat=$[FileName] $[LineNumber]
|
|
||||||
|
|
||||||
[Project\ChildNodes\Node1\ChildNodes]
|
[Project\ChildNodes\Node1\ChildNodes]
|
||||||
Count=10
|
Count=7
|
||||||
|
|
||||||
[Project\ChildNodes]
|
[Project\ChildNodes]
|
||||||
Count=2
|
Count=2
|
||||||
|
|
1
setup.py
1
setup.py
|
@ -87,6 +87,7 @@ def uninstall():
|
||||||
remove_tree(makepath(programfiles,'OpenSSH'))
|
remove_tree(makepath(programfiles,'OpenSSH'))
|
||||||
|
|
||||||
def update_package():
|
def update_package():
|
||||||
|
from waptpackage import PackageEntry
|
||||||
print('Updating OpenSSH Package')
|
print('Updating OpenSSH Package')
|
||||||
latest = json.loads(requests.get('https://api.github.com/repos/PowerShell/Win32-OpenSSH/releases/latest').text.encode('utf-8'))
|
latest = json.loads(requests.get('https://api.github.com/repos/PowerShell/Win32-OpenSSH/releases/latest').text.encode('utf-8'))
|
||||||
version = latest['tag_name'].split('-',1)[0].lstrip('v').rstrip('p1')
|
version = latest['tag_name'].split('-',1)[0].lstrip('v').rstrip('p1')
|
||||||
|
|
Loading…
Reference in New Issue