Check-in [078495e7da]
Overview
| Comment: | Minor changes to winstaller script and default package content. |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
078495e7dab968ad2ab7ede43d8f1a39 |
| User & Date: | mario on 2016-12-01 13:18:51 |
| Other Links: | manifest | tags |
Context
|
2016-12-01
| ||
| 13:19 | Fix help.chm lookup and default Windows paths. check-in: a88fe29963 user: mario tags: trunk | |
| 13:18 | Minor changes to winstaller script and default package content. check-in: 078495e7da user: mario tags: trunk | |
|
2016-11-29
| ||
| 20:29 | Expanded the manual on the search function, added more gui/key markup. check-in: cc545daac0 user: mario tags: trunk | |
Changes
Modified dev/install_python_gtk.ps1 from [54898f5dc1] to [b3f784399d].
| ︙ | |||
25 26 27 28 29 30 31 | 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 | - + + - - - + - + + - + + - + + - + + - + + - + + - + - + + - + - - - - - + - - - - - + - - - - - + - - - - - + - - - - - + - - - - - + - - - - - + |
[string]$AboutLink = "http://freshcode.club/projects/streamtuner2"
#[string]$ModifyPath = $MyInvocation.MyCommand.Path -replace (".ps1", ".bat")
)
#-- paths
$UsrFolder = $MyInvocation.MyCommand.Path -replace ("([\\/][^\\/]+){4}$","")
$UninstallPath = "$UsrFolder\share\streamtuner2\dev\uninstall.cmd"
|
| ︙ | |||
201 202 203 204 205 206 207 | 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 | - - + + + - - + + |
| |
| Installer for Python 2.7.12 & Gtk 2.24.2 |
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
"@
}
function Ask-First {
Write-Host ""
|
| ︙ | |||
230 231 232 233 234 235 236 | 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 | - + + |
}
#-- create Desktop/Startmenu shortcuts
function Make-Shortcut {
[CmdletBinding()]
param($dir, $name, $target, $arg=$false)
if (!(Test-Path -Path $dir)) {
|
| ︙ | |||
255 256 257 258 259 260 261 | 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 | - - - + - - |
$UninstallScriptPath = "$UsrFolder\share\streamtuner2\dev\uninstall.cmd"
$installFolder = $usrFolder.substring(0,$usrFolder.LastIndexOf('\'))
$UninstallScript = Get-Content -Path $UninstallScriptPath
Out-File -FilePath $UninstallScriptPath -Encoding ascii -InputObject "@set installFolder=$installFolder"
Out-File -FilePath $UninstallScriptPath -Encoding ascii -Append -InputObject "@set usrFolder=$usrFolder"
Out-File -FilePath $UninstallScriptPath -Encoding ascii -Append -InputObject "@set Python=$PYTHON"
Out-File -FilePath $UninstallScriptPath -Encoding ascii -Append -InputObject "@set StreamripperFolder=$STREAMRIPPER"
|
| ︙ | |||
311 312 313 314 315 316 317 318 319 320 | 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 | + + + + + + - - - + + - + - + |
function Check-Package {
if (!(Test-Path -Path("$UsrFolder\bin\streamtuner2"))) {
Write-Host -b DarkRed -f White "`nThe bin\streamtuner2 start script could not be found.`nThe installation cannot continue.`nDo not change the folder structure of the Streamtuner2 package!`nIf you want to run the install_python_gtk.ps1 script post-install,`nplease use the -UsrFolder parameter.`n"
Any-Key Red ; exit
}
}
#-- shortcut Get-ItemPropertyValue over multiple registry hives
function Get-ITPV($regpath, $value="(default)") {
@('HKLM:\Software\WOW6432Node', 'HKLM:\Software', 'HKCU:\Software') | % {
if (($val = (Get-ItemProperty -path "$_\$regpath" 2>$null).$value) -AND (Test-Path $val)) { return $val }
}
}
#-- Check if previous Python 2.7 installation exists
function Check-PythonInstall {
|
| ︙ | |||
349 350 351 352 353 354 355 | 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 | - - + - - + + - - + - - - - + - - - + + + - - - - + - - + - - - - + + - - - - - - - - + + + + - - - + - - - - - - + + + + + - - + - - + - + - - - + - + - + - + |
return $PYTHON
}
#-- check prereqs installation
function Check-Prerequisites {
[CmdletBinding()]
param($result = 1)
|
| ︙ | |||
475 476 477 478 479 480 481 | 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 | - - + - - + + + + |
if (!($file)) {
$cmd = "& `"$PYTHON\Scripts\easy_install.exe`" $url" #"
}
else {
$cmd = "& `"$PYTHON\Scripts\easy_install.exe`" $TEMP\$file" #"
}
}
|
Modified st2.py from [05596eca4a] to [b518fe984d].
1 2 3 4 5 6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | - + - - - + + + + - - - + + + + - - + + + | #!/usr/bin/env python # encoding: UTF-8 # api: python # type: application # title: streamtuner2 # description: Directory browser for internet radio, audio and video streams |
| ︙ |