-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwindoz.bat
More file actions
67 lines (67 loc) · 1.75 KB
/
windoz.bat
File metadata and controls
67 lines (67 loc) · 1.75 KB
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
@echo off
echo %DATE% %TIME%
echo.
echo Get wclock up and running under Windows 11 using uv:
echo.
echo Install uv:
echo.
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
echo.
echo Install git client - point a browser to:
echo.
echo https://git-scm.com/downloads/win
echo.
echo Clone source code:
echo.
cd %userprofile%
mkdir Python
cd Python
git clone https://github.com/aa2il/wclock
git clone https://github.com/aa2il/libs
git clone https://github.com/aa2il/data
echo.
echo Bombs away:
echo.
cd wclock
uv run wclock.py
echo.
exit
echo.
echo Older installation methods follow below
echo.
goto BUILD
echo Notes about how to run wclock on Windoze 10
echo.
echo Already should have matplotlib, cartopy/basemap installed from demos
pip install -r requirements.txt
echo.
echo To run script directly under python:
wclock.py
:BUILD
echo.
echo To compile - this takes a long time:
pyinstaller --onefile wclock.py
copy ..\data\50-natural-earth-1-downsampled.png dist
copy Release_Notes.txt dist
echo.
echo To test binary:
dist\wclock.exe
echo.
echo On linux:
echo "cp ../data/50-natural-earth-1-downsampled.png dist"
echo dist/wclock
echo.
echo ---------------------------------------------------------------------
echo.
echo This is deprecated (it uses basemap) but works under windoz ...
echo wclock1.py
echo.
echo ... but this does NOT work :-(
echo Problem appears to be with matplotlib
echo Already have migrated away from basemap so don't worry about it
echo.
echo pyinstaller --onefile wclock1.py
echo dist\wclock1.exe
echo.
echo %DATE% %TIME%
echo.