Skip to content

Commit

Permalink
Merge pull request #13 from ful1e5/dev
Browse files Browse the repository at this point in the history
πŸ’…πŸ“¦ GoogleDot Builder module updated
  • Loading branch information
ful1e5 authored Apr 22, 2021
2 parents 17e73a1 + e97f692 commit f41b405
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 39 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed

- Makefile target re-arrange & installation process updated (Merged #10)
- Compact code inside `builder/*`
- Remove `setup.py`
- Builder module renamed to `gdbuild`
- Import `gdbuild` module directly inside `build.py`
- Windows **True HiDPi Supports** inside build.py

## [v1.1.1] - 29 Mar 2021

Expand Down
12 changes: 3 additions & 9 deletions builder/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,11 @@ WIN_CANVAS_SIZE ?= 32
WIN_SIZE ?= 24

clean:
@rm -rf src/*.egg-info build dist
@find -iname "*.pyc" -delete
@python3 -m pip uninstall -y clickgen

# Removing setup.py package files if installed
@if [ -f "files.txt" ]; then
@xargs rm -rf < files.txt
@rm -rf files.txt
@fi

setup: setup.py
@python3 setup.py install --user --record files.txt
setup:
@python3 -m pip install clickgen==1.1.9 --user

build: setup build.py
@$(foreach theme,$(THEMES), python3 build.py -p "$(bitmaps_dir)/GoogleDot-$(theme)" --xsizes $(X_SIZES) --win-size $(WIN_SIZE) --win-canvas-size $(WIN_CANVAS_SIZE);)
Expand Down
10 changes: 8 additions & 2 deletions builder/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
import argparse
from pathlib import Path

from gbpkg.configure import get_config
from gbpkg.generator import Info, build, wbuild, xbuild
from gdbuild.configure import get_config
from gdbuild.generator import Info, build, wbuild, xbuild

parser = argparse.ArgumentParser(
prog="google_dot_builder",
Expand Down Expand Up @@ -106,6 +106,12 @@
x_out_dir = Path(args.out_dir) / name
win_out_dir = Path(args.out_dir) / f"{name}-Windows"

# Windows Canvas & Cursor sizes
win_size: int = args.win_size
win_canvas_size: int = args.win_canvas_size
if win_canvas_size < win_size:
win_canvas_size = win_size

print(f"Getting '{name}' bitmaps ready for build...")

config = get_config(
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from typing import Any, Dict, Tuple, TypeVar

from clickgen.util import PNGProvider
from gbpkg.constants import WIN_CURSORS_CFG, WIN_DELAY, X_CURSORS_CFG, X_DELAY
from .constants import WIN_CURSORS_CFG, WIN_DELAY, X_CURSORS_CFG, X_DELAY

X = TypeVar("X")

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
from clickgen.builders import WindowsCursor, XCursor
from clickgen.core import CursorAlias
from clickgen.packagers import WindowsPackager, XPackager
from gbpkg.constants import AUTHOR, URL
from gbpkg.symlinks import add_missing_xcursor
from .constants import AUTHOR, URL
from .symlinks import add_missing_xcursor


class Info(NamedTuple):
Expand Down
File renamed without changes.
25 changes: 0 additions & 25 deletions builder/setup.py

This file was deleted.

0 comments on commit f41b405

Please sign in to comment.