Commit Graph

7 Commits

Author SHA1 Message Date
tomasklaen
8d2dfc4b00 build: fixed packaging tool reporting total instead of compressed size 2023-11-04 18:41:26 +01:00
tomasklaen
a8f040af0d perf: speed up ziggy initialization by using less aggressive binary compression 2023-11-04 15:02:45 +01:00
tomasklaen
88e15cac57 build: fix ziggy build on unix
ref #744
2023-11-01 18:11:31 +01:00
tomasklaen
c173641ea5 chore: restructured repo to eliminate dist directory
As pointed out in #757, having scripts in `dist` would cause github's code indexing to ignore them.

This also updates packaging tool/scripts, which before wouldn't mark binaries placed inside `uosc.zip` as executable when built on windows. I can't believe there is no CLI tool on windows to do this and I had to write one in go...
2023-11-01 11:08:23 +01:00
christoph-heinrich
16e8ca3689 build: fixed unix build script syntax (#758) 2023-11-01 10:55:41 +01:00
Tomas Klaen
542f0db0fc feat: added menu for downloading subtitles from opensubtitles.com (#756)
New menu command `download-subtitles` which can also be opened by clicking on the **Download** option in the `subtitles` menu.

It uses a new `ziggy` binary which needs to be build with `tools/build ziggy` command.

ziggy will also hash the file and send the hash to Open Subtitles, so you can search even with empty query and if your file is known, you'll get results exactly for it.

The subtitle file is downloaded into the same directory as currently opened file, or `~~/subtitles` if URL is being played.
2023-10-31 17:21:23 +01:00
Tomas Klaen
656ddcfb9b build: added building, packaging, and localization tools (#744)
Main feature here is the `intl` tool that allows people to quickly create or update localization files with simple:

```
tools/intl de
```

This will parse the code for localization strings, and compare it against `de` locale, removing unused, and assigning `null` to new strings.

We can also make it even easier for people by running:

```
tools/intl all
```

after every localization string change in the codebase, which will update all existing locales so people can just browse through their ones and fill in nulls.
2023-10-28 09:20:56 +02:00