Skip to content

Commit

Permalink
refactor: Update build process
Browse files Browse the repository at this point in the history
- fixed #87
- fixed #84
- fixed #83
- fixed #82
- fixed #68
  • Loading branch information
ful1e5 committed Oct 11, 2022
1 parent 8438ed9 commit 665c488
Show file tree
Hide file tree
Showing 514 changed files with 734 additions and 2,167 deletions.
20 changes: 0 additions & 20 deletions .github/ISSUE_TEMPLATE/----bug-report.md

This file was deleted.

12 changes: 0 additions & 12 deletions .github/ISSUE_TEMPLATE/---feature.md

This file was deleted.

1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE/config.yml

This file was deleted.

14 changes: 0 additions & 14 deletions .github/PULL_REQUEST_TEMPLATE.md

This file was deleted.

116 changes: 21 additions & 95 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,122 +4,48 @@ on:
push:
paths-ignore:
- "**.md"
- "**.bbcode"
- LICENSE
- .github/FUNDING.yml
branches: [main, dev]
pull_request:
paths-ignore:
- "**.md"
- "**.bbcode"
- LICENSE
- .github/FUNDING.yml
branches: [main]

jobs:
build:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.7", "3.8", "3.9", "3.10"]

steps:
- uses: actions/checkout@v2
- name: Install build dependencies (apt)
run: sudo apt install -y libx11-dev libxcursor-dev libpng-dev
continue-on-error: false
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Caching yarn packages
uses: actions/cache@v2
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Set Up NodeJS 12.x
uses: actions/setup-node@v1
with:
node-version: "12.x"

- name: Caching pip packages
uses: actions/cache@v2
id: pip-cache # use this to check for `cache-hit` (`steps.pip-cache.outputs.cache-hit != 'true'`)
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
restore-keys: |
${{ runner.os }}-pip-

- name: Set up Python 3.8
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: "3.8"

- name: Generating `macOSMonterey` symlinks
run: cd svg && python link.py && cd ..
continue-on-error: false
python-version: ${{ matrix.python-version }}

- name: Generating `macOS` Cursor Theme
run: make
- name: Installing pip dependencies
run: python -m pip install --upgrade pip clickgen
continue-on-error: false

- name: Compressing `macOS` UNIX themes
run: |
tar -cvzf macOSBigSur.tar.gz themes/macOSBigSur
tar -cvzf macOSBigSur-White.tar.gz themes/macOSBigSur-White
tar -cvzf macOSMonterey.tar.gz themes/macOSMonterey
tar -cvzf macOSMonterey-White.tar.gz themes/macOSMonterey-White
# https://github.com/returntocorp/semgrep/issues/4794
- name: Fixing 'attr' module error
run: pip install --force-reinstall --upgrade attrs

- name: Uploading `macOSBigSur` UNIX Theme
uses: actions/upload-artifact@v2
with:
name: macOSBigSur
path: macOSBigSur.tar.gz
- name: Building `macOS BigSur` Cursors
run: ctgen build.toml -d 'bitmaps/macOS-BigSur' -n 'macOS-BigSur' -c 'macOS BigSur Cursors'

- name: Uploading `macOSBigSur` Windows Theme
uses: actions/upload-artifact@v2
with:
name: macOSBigSur-Windows
path: themes/macOSBigSur-Windows/*
- name: Building `macOS BigSur White` Cursors
run: ctgen build.toml -d 'bitmaps/macOS-BigSur-White' -n 'macOS-BigSur-White' -c 'macOS BigSur White Cursors'

- name: Uploading `macOSMonterey` UNIX Theme
uses: actions/upload-artifact@v2
with:
name: macOSMonterey
path: macOSMonterey.tar.gz
- name: Building `macOS Monterey` Cursors
run: ctgen build.toml -d 'bitmaps/macOS-Monterey' -n 'macOS-Monterey' -c 'macOS Monterey Cursors'

- name: Uploading `macOSMonterey` Windows Theme
uses: actions/upload-artifact@v2
with:
name: macOSMonterey-Windows
path: themes/macOSMonterey-Windows/*

- name: Uploading `macOSBigSur-White` UNIX Theme
uses: actions/upload-artifact@v2
with:
name: macOSBigSur-White
path: macOSBigSur-White.tar.gz

- name: Uploading `macOSBigSur-White` Windows Theme
uses: actions/upload-artifact@v2
with:
name: macOSBigSur-White-Windows
path: themes/macOSBigSur-White-Windows/*

- name: Uploading `macOSMonterey-White` UNIX Theme
uses: actions/upload-artifact@v2
with:
name: macOSMonterey-White
path: macOSMonterey-White.tar.gz

- name: Uploading `macOSMonterey-White` Windows Theme
uses: actions/upload-artifact@v2
with:
name: macOSMonterey-White-Windows
path: themes/macOSMonterey-White-Windows/*

- name: Uploading `macOSBigSur` bitmaps
uses: actions/upload-artifact@v2
with:
name: bitmaps
path: bitmaps/*
- name: Building `macOS Monterey White` Cursors
run: ctgen build.toml -d 'bitmaps/macOS-Monterey-White' -n 'macOS-Monterey-White' -c 'macOS Monterey White Cursors'
135 changes: 0 additions & 135 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,141 +1,6 @@
# --------------------------------------------- Custom
bitmaps
themes
bin

# --------------------------------------------- Python

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
.python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# PEP 582; used by e.g. github.com/David-OConnor/pyflow
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/


# --------------------------------------------- Nodejs

# Logs
Expand Down
15 changes: 7 additions & 8 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- `svg/*.py` module support inside `pyright` config
- Add cursor top_left_arrow ful1e5/BreezeX_Cursor#10 ful1e5/BreezeX_Cursor#11

### Changed

- refactor: Removed unnecessary source code
- Some cursors are very blurry on lower sizes fixed #74
- `make install` command fixed
- prettier bitmapping logs
- Fix `None` value warning in `builder/symlinks.py`
- Fix artifacts uploading order in `build` action
- Some path ignore in `build` action
- Linux/UNIX uninstall docs init
- README.md: section re-arranged
- README.md: removed unnecessary colors fixed #81
- README.md: Updated build docs
- fixed #87
- fixed #84
- fixed #83
- fixed #82
- fixed #68

## [v1.2.3] - 23 Nov 2021

Expand Down
Loading

0 comments on commit 665c488

Please sign in to comment.