Skip to content

Commit

Permalink
Merge pull request #36 from ful1e5/dev
Browse files Browse the repository at this point in the history
macOS Big Sur v1.1.0
  • Loading branch information
ful1e5 authored Feb 7, 2021
2 parents d91fdaf + a59be4c commit d4453b1
Show file tree
Hide file tree
Showing 128 changed files with 1,537 additions and 1,599 deletions.
6 changes: 6 additions & 0 deletions .gitconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[user]
name=Kaiz Khatri
email=kaizmandhu@gmail.com
[alias]
co=checkout
br=branch
70 changes: 23 additions & 47 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ on:
- "**.bbcode"
- LICENSE
branches: [main, dev]

pull_request:
paths-ignore:
- "**.md"
Expand All @@ -18,78 +17,55 @@ on:
jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Install build dependencies (apt)
run: |
sudo apt install libx11-dev libxcursor-dev libpng-dev
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)"

- uses: actions/cache@v2
- 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-
- uses: actions/setup-node@v1
- name: Set Up NodeJS 12.x
uses: actions/setup-node@v1
with:
node-version: "12.x"
- run: yarn install
- run: yarn render

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.x"

- name: Cache pip dependencies
- 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:
# This path is specific to Ubuntu
path: ~/.cache/pip
# Look to see if there is a cache hit for the corresponding requirements file
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
restore-keys: |
${{ runner.os }}-pip-
${{ runner.os }}-
- name: Install pip dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
continue-on-error: false

- name: Generating `macOSBigSur` Cursor Theme
run: python build.py

- name: Compressing Artifacts
run: |
tar -cvzf logs.tar.gz build.log
tar -cvzf bitmaps.tar.gz bitmaps
tar -cvzf macOSBigSur.tar.gz themes
- name: Uploading `macOSBigSur` Build Log artifact
uses: actions/upload-artifact@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
name: logs
path: logs.tar.gz

python-version: "3.8"
- name: Generating `macOSBigSur` Cursor Theme
run: make
continue-on-error: false
- name: Compressing UNIX theme
run: tar -cvzf macOSBigSur.tar.gz themes/macOSBigSur
- name: Uploading `bitmaps` artifact
uses: actions/upload-artifact@v2
with:
name: bitmaps
path: bitmaps.tar.gz

- name: Uploading `macOSBigSur` Theme artifact
path: bitmaps/*
- name: Uploading `macOSBigSur` UNIX Theme artifact
uses: actions/upload-artifact@v2
with:
name: macOSBigSur
path: macOSBigSur.tar.gz
- name: Uploading `macOSBigSur` Windows Theme artifact
uses: actions/upload-artifact@v2
with:
name: macOSBigSur_Windows
path: themes/macOSBigSur_Windows/*
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
########## Custom
bitmaps
themes
builder/files.txt

########## Python

Expand Down
31 changes: 31 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,37 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [unreleased]

## [1.1.0] - 7 Feb 2021

### Added

- Smooth animation of `Animated Cursors`
- Auto-Package by `clickgen`
- Customize & Build with `make`
- Organized project
- Builder with `setup.py`
- Cursors design #33 **fixed**

### Changed

- Variable length frames render **fixed**
- Minimum frames rendering added.
- Windows cursors are renamed
- cursor's config moved to `builder/applbuild/constants.py`

## [1.0.6] - 1 Nov 2020

### Added

- `left_ptr_watch` with **blue pinwheel**

### Changed

- `build.log` removed feature in **clickgen v1.1.8**
- Repack Windows cursors
- Removed npm scripts & documentation (`yon` package removed)
- npm dependencies got upgraded (**dependabot** 🤖 security warning)

## [1.0.6] - 1 Nov 2020

### Added
Expand Down
51 changes: 51 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
theme := macOSBigSur
src := ./themes/$(theme)

local := ~/.icons
local_dest := $(local)/$(theme)

root := /usr/share/icons
root_dest := $(root)/$(theme)

all: clean render build

unix: clean render bitmaps
@cd builder && make build_unix

windows: clean render bitmaps
@cd builder && make build_windows

.PHONY: all

clean:
@rm -rf bitmaps themes

render: bitmapper svg
@cd bitmapper && $(MAKE)

build: bitmaps
@cd builder && $(MAKE)

.ONESHELL:
SHELL:=/bin/bash


install: themes/macOSBigSur
@if [[ $EUID -ne 0 ]]; then
@echo "> Installing '$(theme)' cursors inside $(local)/..."
@mkdir -p $(local)
@cp -r $(src) $(local_dest) && echo "> Installed!"
@else
@echo "> Installing '$(theme)' cursors inside $(root)/..."
@mkdir -p $(root)
@sudo cp -r $(src) $(root_dest) && echo "> Installed!"
@fi

uninstall:
@if [[ $EUID -ne 0 ]]; then
@echo "> Removing '$(local_dest)'..."
@rm -rf $(local_dest)
@else
@echo "> Removing '$(root_dest)'..."
@sudo rm -rf $(root_dest)
@fi
9 changes: 5 additions & 4 deletions PLING.bbcode
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
[b]macOS Big Sur[/b] Cursor Theme with [b]HiDPi[/b] Display support. This Cursor is built with [b][url=https://github.com/ful1e5/clickgen]clickgen[/url][/b] and render with the [b][url=https://github.com/puppeteer/puppeteer/]puppeteer[/url][/b].
[b]macOS Big Sur[/b] Cursor Theme with [b]HiDPI[/b] Display support. This Cursor is built with [b][url=https://github.com/ful1e5/clickgen]clickgen[/url][/b] and render with the [b][url=https://github.com/puppeteer/puppeteer/]puppeteer[/url][/b].
[i]Available Sizes[/i] [b]22, 24, 28, 32, 40, 48, 56, 64, 72, 80, 88, 96[/b]

[i]Get latest build[/i] @[b][url=https://github.com/ful1e5/apple_cursor/actions]GitHub Actions[/url][/b]
[i]Get the latest build[/i] @[b][url=https://github.com/ful1e5/apple_cursor/actions]GitHub Actions[/url][/b]
[i]Release Notification[/i] at [b][url=https://twitter.com/ful1e5]Twitter[/url][/b](@ful1e5)
For [i]Customizing Size[/i] check [b][url=https://github.com/ful1e5/apple_cursor#manual-build]README.md[/url][/b]

[b]Linux/X11 installation[/b]
Get the latest stable Linux release from the [b][url=https://www.pling.com/p/1408466/#files-panel]Pling[/url][/b]. Unpack [b].tar.gz[/b] file and follow these [b]commands[/b].
Get the latest stable Linux release from the [b][url=https://www.pling.com/p/1408466/#files-panel]Pling[/url][/b]. Unpack the [b].tar.gz[/b] file and follow these [b]commands[/b].

[b]Install[/b]
[b]For all user:[/b]
Expand All @@ -23,7 +24,7 @@ Get the latest stable Linux release from the [b][url=https://www.pling.com/p/140
[list=1]
[*]unzip [b]macOSBigSur_Windows.zip[/b] file[/*]
[*]Open [b]macOSBigSur_Windows/[/b] in Explorer, and [b]right-click[/b] on [b]install.inf[/b].[/*]
[*]Click 'Install' from the context menu, and authorise the modifications to your system.[/*]
[*]Click 'Install' from the context menu, and authorize the modifications to your system.[/*]
[*]Open [i]Control Panel > Personalisation and Appearance > Change mouse pointers[/i], and select [b]MacOSBigSur Cursors[/b].[/*]
[*]Click '[b]Apply[/b]'.[/*]
[/list]
Expand Down
Loading

0 comments on commit d4453b1

Please sign in to comment.