Skip to content

Commit

Permalink
🔀 Merge pull request #11 from Dev Branch
Browse files Browse the repository at this point in the history
Typo fixed in `build` scripts
  • Loading branch information
ful1e5 authored Jul 29, 2020
2 parents fff1c43 + 72dc055 commit 432f628
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 11 deletions.
13 changes: 10 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [unreleased]

## [1.1.4-beta] - 20 July 2020 (Current)
## [1.1.5-beta] - 29 July 2020 (Current)

# Changed

- Typo fixed

## [1.1.4-beta] - 20 July 2020

### Added

- **configsgen** - _a tool for automating cursor `configs` generation from images._
- **build function** - _a shortcut functions for build a `cursor theme`._

# Changed
### Changed

- individual `logging` support
- added more _logs_
Expand Down Expand Up @@ -61,7 +67,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- auto-generated **symlinks** based on input configs
- `.tar` archive & `directory` as out **package**.

[unreleased]: https://github.com/KaizIqbal/clickgen/compare/1.1.4-beta...master
[unreleased]: https://github.com/KaizIqbal/clickgen/compare/1.1.5-beta...master
[1.1.5-beta]: https://github.com/KaizIqbal/clickgen/compare/1.1.4-alpha...1.1.5-beta
[1.1.4-beta]: https://github.com/KaizIqbal/clickgen/compare/1.1.3-alpha...1.1.4-beta
[1.1.3-alpha]: https://github.com/KaizIqbal/clickgen/compare/1.1.2-alpha...1.1.3-alpha
[1.1.2-alpha]: https://github.com/KaizIqbal/clickgen/compare/1.1.1-alpha...1.1.2-alpha
Expand Down
2 changes: 1 addition & 1 deletion clickgen/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from .configsgen.__main__ import generate_animated_cursor, generate_static_cursor
from .configsgen import configsgen

from .build import build_cursor_theme, build_win_curosr_theme, build_x11_curosr_theme
from .build import build_cursor_theme, build_win_cursor_theme, build_x11_cursor_theme

with open(os.path.join(os.path.dirname(__file__), 'pkginfo.json')) as fp:
_info = json.load(fp)
Expand Down
4 changes: 2 additions & 2 deletions clickgen/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from .helpers import TemporaryDirectory


def build_win_curosr_theme(name: str, image_dir: Path, cursor_sizes: IntegerList, hotspots: any = None, out_path: Path = os.getcwd(), archive: bool = False, delay: int = DELAY):
def build_win_cursor_theme(name: str, image_dir: Path, cursor_sizes: IntegerList, hotspots: any = None, out_path: Path = os.getcwd(), archive: bool = False, delay: int = DELAY):
"""
Build Functions for Windows Cursor Theme.
`name` is folder name.
Expand All @@ -36,7 +36,7 @@ def build_win_curosr_theme(name: str, image_dir: Path, cursor_sizes: IntegerList
x11=False, win=True, archive=archive, logs=True)


def build_x11_curosr_theme(name: str, image_dir: Path, cursor_sizes: IntegerList, hotspots: any = None, out_path: Path = os.getcwd(), archive: bool = False, delay: int = DELAY):
def build_x11_cursor_theme(name: str, image_dir: Path, cursor_sizes: IntegerList, hotspots: any = None, out_path: Path = os.getcwd(), archive: bool = False, delay: int = DELAY):
"""
Build Functions for Windows Cursor Theme.
`name` is folder name.
Expand Down
8 changes: 4 additions & 4 deletions clickgen/configsgen/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,20 @@ def get_cursor_list(imgs_dir: Path, animated: bool = False) -> StringList:
`animated` flag is usefull for get animated cursors frames, Frames per cursor is identify by `number(01, 02, .., n)` with `postfix` of cursor name like `wait-01.png`.
"""

all_curosr_list, cursor_list = [], []
all_cursor_list, cursor_list = [], []

for file_path in os.listdir(imgs_dir):
all_curosr_list.append(os.path.basename(file_path))
all_cursor_list.append(os.path.basename(file_path))

if (animated):
# animated cursor have filename-01,02,03..n postfix
temp: StringList = [cursor for cursor in all_curosr_list if
temp: StringList = [cursor for cursor in all_cursor_list if
cursor.find("-") >= 0]
temp.sort()
cursor_list: StringList = [list(g) for _, g in itertools.groupby(
temp, lambda x: x.partition("-")[0])]
else:
for cursor in all_curosr_list:
for cursor in all_cursor_list:
if cursor.find("-") <= 0:
cursor_list.append(cursor)
cursor_list.sort()
Expand Down
2 changes: 1 addition & 1 deletion clickgen/pkginfo.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "clickgen",
"version": "1.1.4",
"version": "1.1.5",
"description": "X11 & Windows Cursor API 👷",
"author": "Kaiz Khatri",
"author_email": "[email protected]",
Expand Down

0 comments on commit 432f628

Please sign in to comment.