Internet radio browser GUI for music/video streams from various directory services.

⌈⌋ ⎇ branch:  streamtuner2


Check-in [6d5aea193c]

Overview
Comment:Install helpers (PowerShell) for .exe package, which install Python+Gtk after ST2.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 6d5aea193c4158fc604f35ba8a9d4b33adeb7475
User & Date: mario on 2016-11-13 18:18:45
Other Links: manifest | tags
Context
2016-11-13
19:54
Clean up some commands for Win installer. check-in: adbc2835e8 user: mario tags: trunk
18:18
Install helpers (PowerShell) for .exe package, which install Python+Gtk after ST2. check-in: 6d5aea193c user: mario tags: trunk
14:06
Add windows CHM help file (only for .exe build at the moment) check-in: 7379129b9f user: mario tags: trunk
Changes

Modified Makefile from [0d1ab36143] to [9f4e907610].

43
44
45
46
47
48
49
50


51
52
53
54
55
56
57
deb:
	$(PACK) -t $@ $(OPTS) $(DEPS) -p "$(NAME)-VERSION.deb" st2.py
rpm:
	$(PACK) -t $@ $(OPTS) $(DEPS) -p "$(NAME)-VERSION.rpm" st2.py
tar:
	$(PACK) -t $@ $(OPTS) $(DEPS) -p "$(NAME)-VERSION.bin.txz" st2.py
exe:
	$(PACK) -t $@ $(OPTS) $(DEPS) -p "$(NAME)-VERSION.exe" st2.py help/help.chm


arch:
	$(PACK) -t $@ $(OPTS) $(DEPS_A) -p "$(NAME)-VERSION.arch.txz" st2.py
pyz:
        #@BUG: relative package references leave a /tmp/doc/ folder
	$(PACK) -u packfile -s src -t zip --zip-shebang "/usr/bin/env python"	\
		-f -p "$(NAME)-$(VERSION).pyz" --prefix=./  .zip.py st2.py
src:







|
>
>







43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
deb:
	$(PACK) -t $@ $(OPTS) $(DEPS) -p "$(NAME)-VERSION.deb" st2.py
rpm:
	$(PACK) -t $@ $(OPTS) $(DEPS) -p "$(NAME)-VERSION.rpm" st2.py
tar:
	$(PACK) -t $@ $(OPTS) $(DEPS) -p "$(NAME)-VERSION.bin.txz" st2.py
exe:
	$(PACK) -t $@ $(OPTS) $(DEPS) -p "$(NAME)-VERSION.exe" \
	--exe-exec 'cmd /K c:\usr\share\streamtuner2\dev\install_python_gtk.bat' \
	--exe-dest c:/ --version $(VERSION) help/help.chm dev/install_python_gtk.bat st2.py
arch:
	$(PACK) -t $@ $(OPTS) $(DEPS_A) -p "$(NAME)-VERSION.arch.txz" st2.py
pyz:
        #@BUG: relative package references leave a /tmp/doc/ folder
	$(PACK) -u packfile -s src -t zip --zip-shebang "/usr/bin/env python"	\
		-f -p "$(NAME)-$(VERSION).pyz" --prefix=./  .zip.py st2.py
src:

Added dev/install_python_gtk.bat version [726eaeae71].







>
>
>
1
2
3
# pack: install_python_gtk.ps1

PowerShell -File c:\usr\share\streamtuner2\dev\install_python_gtk.ps1 -ExecutionPolicy ByPass

Added dev/install_python_gtk.ps1 version [abd419625a].









































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
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
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
#

# Run as post-install script for .exe package

$TEMP = $env:TEMP
$PYTHON = "C:\\Python27"

#-- what
$files = @(
  "https://www.python.org/ftp/python/2.7.12/python-2.7.12.msi",
  "http://ftp.gnome.org/pub/GNOME/binaries/win32/pygtk/2.24/pygtk-all-in-one-2.24.2.win32-py2.7.msi",
  "$PYTHON\\Tools\\easy_install.exe requests",
  "https://pypi.python.org/packages/3d/ee/affbc53073a951541b82a0ba2a70de266580c00f94dd768a60f125b04fca/lxml-2.3.win32-py2.7.exe",
  "https://pypi.python.org/packages/62/71/8ac1f5c0251e51714d20e4b102710d5eee1683c916616129552b0a025ba5/pyquery-1.2.17-py2.py3-none-any.whl#noexec",
  "$PYTHON\\Tools\\pip install $TEMP\\pyquery-1.2.17-py2.py3-none-any.whl",
  "http://effbot.org/downloads/PIL-1.1.7.win32-py2.7.exe"
)

#-- ask before running
Write-Host "Do you want to install Python 2.7 and Gtk dependencies now?"
Write-Host ""
Write-Host " - Leave the default install path of $PYTHON for this to work."
Write-Host " - This will install 32-bit versions of Python and Gtk."
Write-Host ""
#$y = Read-Host "y/n"
#if ($y -notmatch "y|Y|1") {
#    exit;
#}
Write-Host ""

#-- process
ForEach ($url in $files) {

    echo "`n[[[ $url ]]]" #`
    chdir($TEMP);

    if ($url -match "https?://.+") {
        $file = [regex]::match($url, "/([^/]+)($|[?#])").Groups[1].Value;

        # download
        $wget = New-Object System.Net.WebClient
        $wget.DownloadFile($url, "$TEMP\\$file");

        # run
        if ($url -match ".+#noexec") {
        }
        elseif ($url -match ".+.msi$") {
            Start-Process -Wait msiexec -ArgumentList /i,"$TEMP\\$file"
        }
        elseif ($url -match ".+.exe$") {
            Start-Process -Wait "$TEMP\\$file"
        }
        else {
            & "$TEMP\\$file"
        }
    }
    else {
        # only run command
        chdir($PYTHON)
        & "$url"
    }
}

#-- make ST2 .lnk
$WshShell = New-Object -comObject WScript.Shell
$Shortcut = $WshShell.CreateShortcut("$Home\Desktop\Streamtuner2.lnk")
$Shortcut.TargetPath = "C:\Python27\pythonw.exe c:\usr\bin\streamtuner2"
$Shortcut.Save()