Skip to content

Commit 371f144

Browse files
committed
ts-warp-1.5.2, gui-warp-1.0.25 (gui-warp-v1.0.30-mac), ns-warp-1.0.7
1 parent 49657da commit 371f144

File tree

6 files changed

+48
-9
lines changed

6 files changed

+48
-9
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# CHANGELOG
22

3-
* **2024.06.30 Current**
3+
* **2024.07.12 ts-warp-1.5.2, gui-warp-1.0.25 (gui-warp-v1.0.30-mac), ns-warp-1.0.7**
4+
* `GUI-Warp`: `About`-tab displays `CHANGELOG.md`-file
5+
* `Makefile`: installs/deinstalls text-files files into/from `<PREFIX>/share/ts-warp` directory
46
* `GUI-Warp.app`: `ts-warp.sh` can be run from `CLI` to control `ts-warp` daemon e.g.:
57
`sudo /Applications/gui-warp.app/Contents/Resources/ts-warp.sh start /Users/$USER/ts-warp`
68
* `GUI-Warp.app`: `build.sh` uses current `openssl` and `libssh2` versions

Makefile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,12 @@ install: ts-warp.sh ts-warp_autofw.sh ts-pass install-examples
130130
install -m 755 man/ts-warp.sh.1 $(PREFIX)/man/man1
131131
install -m 755 man/ts-warp.5 $(PREFIX)/man/man5
132132
install -m 755 man/ts-warp.8 $(PREFIX)/man/man8
133+
install -d $(PREFIX)/share/
134+
install -d $(PREFIX)/share/ts-warp/
135+
install -m 644 CHANGELOG.md $(PREFIX)/share/ts-warp
136+
install -m 644 CONTRIBUTORS.md $(PREFIX)/share/ts-warp
137+
install -m 644 LICENSE $(PREFIX)/share/ts-warp
138+
install -m 644 README.md $(PREFIX)/share/ts-warp
133139

134140
deinstall: uninstall
135141
uninstall:
@@ -149,6 +155,11 @@ uninstall:
149155
rm -f $(PREFIX)/man/man1/ts-warp.sh.1
150156
rm -f $(PREFIX)/man/man5/ts-warp.5
151157
rm -f $(PREFIX)/man/man8/ts-warp.8
158+
rm -f $(PREFIX)/share/ts-warp/CHANGELOG.md
159+
rm -f $(PREFIX)/share/ts-warp/CONTRIBUTORS.md
160+
rm -f $(PREFIX)/share/ts-warp/LICENSE
161+
rm -f $(PREFIX)/share/ts-warp/README.md
162+
rmdir $(PREFIX)/share/ts-warp/
152163

153164
clean:
154165
rm -rf ts-warp ts-warp.sh ts-warp_autofw.sh ts-pass *.o *.dSYM *.core examples/*.conf examples/*.sh .configured

gui/gui-warp.py.in

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ class App:
5757
fwfile='/usr/local/etc/ts-warp_pf.conf',
5858
logfile='/usr/local/var/log/ts-warp.log',
5959
pidfile='/usr/local/var/run/ts-warp.pid',
60-
url_new_vesrsion=''):
60+
url_new_vesrsion='',
61+
relfile=''):
6162

6263
self.password = ''
6364

@@ -226,6 +227,7 @@ class App:
226227
tab_about.rowconfigure(2, weight=0)
227228
tab_about.rowconfigure(3, weight=0)
228229
tab_about.rowconfigure(4, weight=1)
230+
tab_about.rowconfigure(5, weight=0)
229231

230232
style_url = ttk.Style()
231233
style_url.configure("URL.TLabel", foreground="orange")
@@ -255,10 +257,21 @@ It is a free and open-source software, but if you want to support it, please do'
255257

256258
ttk.Separator(tab_about, orient='horizontal').grid(column=0, row=3, sticky=tk.EW, columnspan=2, pady=self._pady)
257259

260+
release_txt = tk.Text(tab_about, highlightthickness=0, state='disabled')
261+
release_txt.grid(column=0, row=4, columnspan=2, sticky=tk.NSEW, pady=self._pady)
262+
tab_about.bind("<Visibility>", self.readfile_ini(release_txt, relfile))
263+
release_txt.config(state='disabled')
264+
release_txt.see('1.0')
265+
266+
scroll_release = ttk.Scrollbar(tab_about, orient=tk.VERTICAL)
267+
scroll_release.grid(column=2, row=4, sticky=tk.NSEW, pady=self._pady)
268+
scroll_release.config(command=release_txt.yview)
269+
release_txt.config(yscrollcommand=scroll_release.set)
270+
258271
lbl_contact_txt = ttk.Label(tab_about, text='Mikhail Zakharov, 2021-2024, BSD-2-Clause license')
259-
lbl_contact_txt.grid(column=0, row=4, sticky=tk.SW, padx=self._padx, pady=self._pady)
272+
lbl_contact_txt.grid(column=0, row=5, sticky=tk.SW, padx=self._padx, pady=self._pady)
260273
lbl_contact_url = ttk.Label(tab_about, text='[email protected]', style='URL.TLabel')
261-
lbl_contact_url.grid(column=1, row=4, sticky=tk.SE, padx=self._padx, pady=self._pady)
274+
lbl_contact_url.grid(column=1, row=5, sticky=tk.SE, padx=self._padx, pady=self._pady)
262275
lbl_contact_url.bind("<Button-1>", lambda e: webbrowser.open_new(url_contact))
263276

264277
# -- Status bar ---------------------------------------------------------------------------------------------- #
@@ -527,6 +540,7 @@ if __name__ == "__main__":
527540
logfile = prefix + '/var/log/ts-warp.log'
528541
pidfile = prefix + '/var/run/ts-warp.pid'
529542
actfile = prefix + '/var/spool/ts-warp/ts-warp.act'
543+
relfile = prefix + '/share/ts-warp/CHANGELOG.md'
530544

531545
# Override defaults by gui-warp.ini
532546
try:
@@ -552,4 +566,4 @@ if __name__ == "__main__":
552566

553567
app = App(runcmd=runcmd, daemon_options=daemon_options,
554568
inifile=inifile, fwfile=fwfile, logfile=logfile, pidfile=pidfile,
555-
url_new_vesrsion=url_new_vesrsion)
569+
url_new_vesrsion=url_new_vesrsion, relfile=relfile)

gui/ports/macOS/gui-warp.py

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ def __init__(self, width=800, height=560,
207207
tab_about.rowconfigure(2, weight=0)
208208
tab_about.rowconfigure(3, weight=0)
209209
tab_about.rowconfigure(4, weight=1)
210+
tab_about.rowconfigure(5, weight=0)
210211

211212
style_url = ttk.Style()
212213
style_url.configure("URL.TLabel", foreground="orange")
@@ -236,10 +237,21 @@ def __init__(self, width=800, height=560,
236237

237238
ttk.Separator(tab_about, orient='horizontal').grid(column=0, row=3, sticky=tk.EW, columnspan=2, pady=self._pady)
238239

240+
release_txt = tk.Text(tab_about, highlightthickness=0, state='disabled')
241+
release_txt.grid(column=0, row=4, columnspan=2, sticky=tk.NSEW, pady=self._pady)
242+
tab_about.bind("<Visibility>", self.readfile_ini(release_txt, 'CHANGELOG.md'))
243+
release_txt.config(state='disabled')
244+
release_txt.see('1.0')
245+
246+
scroll_release = ttk.Scrollbar(tab_about, orient=tk.VERTICAL)
247+
scroll_release.grid(column=2, row=4, sticky=tk.NSEW, pady=self._pady)
248+
scroll_release.config(command=release_txt.yview)
249+
release_txt.config(yscrollcommand=scroll_release.set)
250+
239251
lbl_contact_txt = ttk.Label(tab_about, text='Mikhail Zakharov, 2021-2024, BSD-2-Clause license')
240-
lbl_contact_txt.grid(column=0, row=4, sticky=tk.SW, padx=self._padx, pady=self._pady)
252+
lbl_contact_txt.grid(column=0, row=5, sticky=tk.SW, padx=self._padx, pady=self._pady)
241253
lbl_contact_url = ttk.Label(tab_about, text='[email protected]', style='URL.TLabel')
242-
lbl_contact_url.grid(column=1, row=4, sticky=tk.SE, padx=self._padx, pady=self._pady)
254+
lbl_contact_url.grid(column=1, row=5, sticky=tk.SE, padx=self._padx, pady=self._pady)
243255
lbl_contact_url.bind("<Button-1>", lambda e: webbrowser.open_new(url_contact))
244256

245257
# -- Status bar ---------------------------------------------------------------------------------------------- #

gui/ports/macOS/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
'iconfile': 'media/gui-warp.icns',
4141
'arch': 'universal2',
4242
'packages': ['tkinter'],
43-
'resources': ['../../../LICENSE']
43+
'resources': ['../../../LICENSE', '../../../CHANGELOG.md']
4444
}
4545

4646
setup(

version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#define PROG_NAME_SHORT "TSW"
3030
#define PROG_VERSION_MAJOR "1"
3131
#define PROG_VERSION_MINOR "5"
32-
#define PROG_VERSION_BUILD "1"
32+
#define PROG_VERSION_BUILD "2"
3333
#define PROG_VERSION PROG_VERSION_MAJOR "." PROG_VERSION_MINOR "." PROG_VERSION_BUILD
3434
#define PROG_NAME_FULL PROG_NAME " " PROG_VERSION
3535
#define PROG_NAME_CODE PROG_NAME_SHORT PROG_VERSION

0 commit comments

Comments
 (0)