psytricks 2.2.0a20__tar.gz → 2.2.0a22__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,41 @@
1
+ # 🏗️ ResTricks Service Installation / Upgrade TL;DR ⏩
2
+
3
+ The commands below can be used to upgrade an existing installation of the
4
+ `ResTricksService` - for a *fresh* installation you'd also need to create the
5
+ target location and adjust the configuration in `restricks-server.xml`.
6
+
7
+ ```PowerShell
8
+ # adjust the version and path variables to your preferences:
9
+ $PSyTricksTag = "v2.2.0.a21"
10
+ $PSyTricksVersion = "2.2.0a21"
11
+ $TargetDir = "C:\ProgramData\PSyTricks"
12
+
13
+ # this one usually doesn't require changes:
14
+ $WinSwVersion = "WinSW.NET461-2.12.0"
15
+
16
+ $PSyTricksPkg = "psytricks-REST-${PSyTricksVersion}_${WinSwVersion}"
17
+ $PSyTricksZip = "${PSyTricksPkg}.zip"
18
+ $PSyTricksBaseDl = "https://github.com/imcf/psytricks/releases/download"
19
+ $PSyTricksUri = "${PSyTricksBaseDl}/${PSyTricksTag}/${PSyTricksZip}"
20
+
21
+ Set-Location "C:\Temp\"
22
+
23
+ Invoke-WebRequest -Uri $PSyTricksUri -OutFile $PSyTricksZip
24
+ Expand-Archive $PSyTricksZip -DestinationPath .
25
+ Set-Location $PSyTricksPkg
26
+ # when upgrading, simply remove the example config - for an initial installation
27
+ # move it to the target location and rename it to "restricks-server.xml":
28
+ Remove-Item restricks-server.example.xml
29
+
30
+ Stop-Service RESTricksServer
31
+ Get-Service RESTricksServer
32
+
33
+ foreach ($File in Get-ChildItem -File) {
34
+ Unblock-File -Path $File.FullName
35
+ Move-Item -Path $File.FullName -Destination $TargetDir -Force
36
+ }
37
+
38
+ Start-Service RESTricksServer
39
+ Get-Service RESTricksServer
40
+ Get-Content -Tail 10 "${TargetDir}\restricks-server.wrapper.log"
41
+ ```
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: psytricks
3
- Version: 2.2.0a20
3
+ Version: 2.2.0a22
4
4
  Summary: PowerShell Python Citrix Tricks.
5
5
  License-Expression: GPL-3.0-or-later
6
6
  License-File: LICENSE
@@ -260,3 +260,45 @@ wrapper.set_maintenance(machine="vm42.vdi.example.xy", disable=False)
260
260
  [www_rtf]: https://roy.gbiv.com/untangled/2008/rest-apis-must-be-hypertext-driven
261
261
  [www_shawl]: https://github.com/mtkennerly/shawl
262
262
 
263
+ # 🏗️ ResTricks Service Installation / Upgrade TL;DR ⏩
264
+
265
+ The commands below can be used to upgrade an existing installation of the
266
+ `ResTricksService` - for a *fresh* installation you'd also need to create the
267
+ target location and adjust the configuration in `restricks-server.xml`.
268
+
269
+ ```PowerShell
270
+ # adjust the version and path variables to your preferences:
271
+ $PSyTricksTag = "v2.2.0.a21"
272
+ $PSyTricksVersion = "2.2.0a21"
273
+ $TargetDir = "C:\ProgramData\PSyTricks"
274
+
275
+ # this one usually doesn't require changes:
276
+ $WinSwVersion = "WinSW.NET461-2.12.0"
277
+
278
+ $PSyTricksPkg = "psytricks-REST-${PSyTricksVersion}_${WinSwVersion}"
279
+ $PSyTricksZip = "${PSyTricksPkg}.zip"
280
+ $PSyTricksBaseDl = "https://github.com/imcf/psytricks/releases/download"
281
+ $PSyTricksUri = "${PSyTricksBaseDl}/${PSyTricksTag}/${PSyTricksZip}"
282
+
283
+ Set-Location "C:\Temp\"
284
+
285
+ Invoke-WebRequest -Uri $PSyTricksUri -OutFile $PSyTricksZip
286
+ Expand-Archive $PSyTricksZip -DestinationPath .
287
+ Set-Location $PSyTricksPkg
288
+ # when upgrading, simply remove the example config - for an initial installation
289
+ # move it to the target location and rename it to "restricks-server.xml":
290
+ Remove-Item restricks-server.example.xml
291
+
292
+ Stop-Service RESTricksServer
293
+ Get-Service RESTricksServer
294
+
295
+ foreach ($File in Get-ChildItem -File) {
296
+ Unblock-File -Path $File.FullName
297
+ Move-Item -Path $File.FullName -Destination $TargetDir -Force
298
+ }
299
+
300
+ Start-Service RESTricksServer
301
+ Get-Service RESTricksServer
302
+ Get-Content -Tail 10 "${TargetDir}\restricks-server.wrapper.log"
303
+ ```
304
+
@@ -5,12 +5,12 @@ authors = [
5
5
  { name = "Niko Ehrenfeuchter", email = "nikolaus.ehrenfeuchter@unibas.ch" },
6
6
  ]
7
7
  license = "GPL-3.0-or-later"
8
- readme = "README.md"
9
- dynamic = []
10
- version = "2.2.0-a.20"
8
+ dynamic = ["readme"]
9
+ version = "2.2.0-a.22"
11
10
 
12
11
  [tool.poetry]
13
12
  documentation = "https://imcf.one/apidocs/psytricks/psytricks.html"
13
+ readme = ["README.md", "INSTALLATION.md"]
14
14
 
15
15
  [tool.poetry.urls]
16
16
  "Changelog" = "https://github.com/imcf/psytricks/blob/main/CHANGELOG.md"
@@ -3,7 +3,7 @@
3
3
  .. include:: ../../CHANGELOG.md
4
4
  """
5
5
 
6
- __version__ = "2.2.0-a.20"
6
+ __version__ = "2.2.0-a.22"
7
7
 
8
8
  # style exceptions for pdoc-include-only docstrings:
9
9
  # ruff: noqa: D400 (missing-trailing-period)
@@ -5,7 +5,7 @@ Collection of functions and other definitions to be sourced by other scripts.
5
5
  #>
6
6
 
7
7
  # the version variable will be filled by poetry at build time:
8
- $Version = "2.2.0-a.20"
8
+ $Version = "2.2.0-a.22"
9
9
 
10
10
 
11
11
  #region properties-selectors
File without changes
File without changes