Skip to content
This repository was archived by the owner on Sep 29, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
fd0f633
Use `-` for delimiter
jiahaog May 26, 2016
6cf1945
Add google-calendar.ico
jiahaog May 26, 2016
3d89099
Add devdocs
jiahaog May 26, 2016
8c2182d
Add Devdocs
jiahaog May 26, 2016
1e4da8b
Add Google Photos and Google Keep, add note in readme
May 26, 2016
a299d4b
Add groupme
jiahaog May 26, 2016
b776c46
Add GroupMe
jiahaog May 26, 2016
58f1bc0
Add Fastmail
fsavje May 26, 2016
6921ef7
Add School Loop
z11h May 26, 2016
b0d4c71
Add School Loop .icns and .ico
jiahaog May 26, 2016
5db03ce
Add fastmail .ico
jiahaog May 26, 2016
694ff71
Add naming convention
jiahaog May 26, 2016
02ca6a7
Fix typo in yml
jiahaog May 27, 2016
7af77a8
Use official WhatsApp icons
eladnava May 28, 2016
1783499
Update readme for helper scripts
jiahaog May 28, 2016
d61856e
Update files for new naming extension
jiahaog May 28, 2016
6716158
Remove extra links
jiahaog May 28, 2016
43fac5c
Add missing line for google-calendar
jiahaog May 28, 2016
2f2cabb
Remove extra line appended
jiahaog May 28, 2016
5a9de08
Force cp to always overwrite
jiahaog May 28, 2016
df9ddad
Fix bug where script fails silently if dependency is not found
jiahaog May 28, 2016
5666e1f
Add toggl (#9)
May 29, 2016
4c514ca
Update CONTRIBUTING with example
jiahaog May 29, 2016
495ab50
Add Google Music Icons (#10)
elfassy Jul 12, 2016
8aed841
Add WorkflowMax Icons (#12), change Google Play identifiers
austencm Aug 4, 2016
f949e05
Add Microsoft Azure
dennisroche Feb 12, 2017
cba8fd7
Add WorkFlowy
focusaurus Feb 12, 2017
82283f1
Add Pocket Casts and Rainwave
firesidegargoyle Feb 12, 2017
100da9e
Add Regexer
ejjoo Feb 12, 2017
a4c5522
Add The Lounge
codebucketdev Feb 12, 2017
5634f14
Add Google Drive, Hangouts and Salesforce
jiahaog Feb 12, 2017
e80d7d5
Add Tallyfy
walker Feb 12, 2017
dc70b0b
Added Instapaper
Apr 6, 2017
6b66604
Add Microsoft To-Do (#22)
Apr 20, 2017
ddfd963
Update Asana (#23)
ialexryan May 4, 2017
f42dde1
Adding Google docs, sheets, spotify (#25)
th0m4s Oct 3, 2017
6ec2292
Add NirvanaHQ (#24)
tldr69 Oct 3, 2017
dc056c7
Add Pandora (#28)
nlbuescher Oct 3, 2017
c01d4b6
Add Google Allo (#27)
redoxeon Oct 3, 2017
f0987f2
Add Ausmed (#32)
egmontsong Oct 3, 2017
367aed8
Add Google Voice and Google Meet (#31)
derekperkins Oct 3, 2017
db93d62
Add icons for Connectwise & Password State (#30)
khaltis Mar 30, 2018
b5b9c78
Add Crunchyroll logo (#33)
KingMob Mar 30, 2018
8a19526
Add Netflix (#34)
brunolemos Mar 30, 2018
dcebb9d
Add iHeartRadio, HipChat (#35)
ecogan Mar 30, 2018
91b908c
Add Waffle.io (#36)
NicolasGeraud Mar 30, 2018
2d93886
Add TeamGantt (#39)
cryogenx Mar 30, 2018
bdb6679
Add PivotalTracker (#41)
pkuczynski Mar 30, 2018
8d051a4
Updated JIRA (#42)
pkuczynski Mar 30, 2018
386fb6d
Add Dropbox Paper (#44)
MatanRubin Mar 30, 2018
06d94b9
Add Quire.io (#37)
Feb 4, 2019
d551d8e
Add Gitlab (#48)
alexanderpepper Feb 4, 2019
2a9c124
Add Diaro (#50)
nanpuhaha Feb 4, 2019
b4f5018
Add todoist (#51)
rodrigoflores Feb 4, 2019
ecee181
Add Feedly (#53)
sconetto Feb 4, 2019
a8f1fcd
Update Facebook Messenger icons (#57)
krystof-k Feb 4, 2019
3b7c4e6
Add AWSCloud9 (#46)
mvhenten Feb 4, 2019
0764ff1
Add Untappd (#26)
SimonGolms Feb 4, 2019
78938da
Add Google Messages (#55)
isaac-martin Dec 11, 2018
edd7715
Fix indentation and alphabetical order
jiahaog Feb 4, 2019
cc3c19b
Add pocket and ING Direct (#38)
jiahaog Feb 4, 2019
81ceae0
Add youtube music (#52)
jiahaog Feb 4, 2019
3556c6d
Refactor scripts and use CairoSVG (#56)
krystof-k Feb 25, 2019
ad40587
Add Codetree (#58)
ac21 Feb 25, 2019
7422318
Add icons for Duolingo
joanroig Nov 27, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 25 additions & 9 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,41 @@ Feel free to submit a pull request for any `.ico`, `.icns` or `.png` icon!

If the icons for the correct platforms are found here, the [optional dependencies](https://github.com/jiahaog/nativefier/#optional-dependencies) for Nativefier might not be required to infer an icon for that particular target web page.

For example, I want to add an `.ico` file to the repository, for [http://www.facebook.com/](http://www.facebook.com/).

### Naming Convention

Rename the icon file to `facebook.ico`, just use the key identifier for the page.
Name the icon file to `${PRODUCT}.${EXT}`, just use the key identifier for the page.

However, if the product name is generic enough, name it as `${COMPANY}-${PRODUCT}.${EXT}`, with `-` as the delimiter. The matching algorithm works by taking a score of the number of words matched in the file name with the target url.

Take the example of naming Google Photos for the target url `https://photos.google.com/`. Using `photos.png` is too generic, and we want it to be specific to google. Thus, we will name the icon file `google-photos.png` for a `.png` file.

### Step 1

Copy the file to `./files`
First prepare the image files, for the respective platform as stated above

### Step 2
A helpful tool for converting the icons is [iconverticons.com](https://iconverticons.com/online/).

Copy the images to `./files`.

Add an entry for the file to `./data/gitCloud.yml`
```
$ ls -a ./files

google-photos.png
google-photos.ico
google-photos.icns
```

### Step 2

For example, add the following lines to the end of the file.
Add an entry for the file to `./data/gitCloud.yml`, in alphabetical order

```yml
- href: files/facebook.ico
name: facebook
- name: google-photos
href: files/google-photos.png
- name: google-photos
href: files/google-photos.ico
- name: google-photos
href: files/google-photos.icns
```

### Step 3
Expand Down
57 changes: 45 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,41 +11,74 @@ The [index](http://jiahaog.com/nativefier-icons/) is automatically generated wit
Feel free to submit a pull request for any `.ico`, `.icns` or `.png` icon!

- `.ico` - For Windows
- `.icns` - For OSX
- `.icns` - For macOS (Apple Icon Image format)
- `.png` - For Linux

If the icons for the correct platforms are found here, the [optional dependencies](https://github.com/jiahaog/nativefier/#optional-dependencies) for Nativefier might not be required to infer an icon for that particular target web page.

For example, I want to add an `.ico` file to the repository, for [http://www.facebook.com/](http://www.facebook.com/).

### Naming Convention

Rename the icon file to `facebook.ico`, just use the key identifier for the page.
Name the icon file to `${PRODUCT}.${EXT}`, just use the key identifier for the page.

However, if the product name is generic enough, name it as `${COMPANY}-${PRODUCT}.${EXT}`, with `-` as the delimiter. The matching algorithm works by taking a score of the number of words matched in the file name with the target url.

Take the example of naming Google Photos for the target url `https://photos.google.com/`. Using `photos.png` is too generic, and we want it to be specific to google. Thus, we will name the icon file `google-photos.png` for a `.png` file.

### Step 1

Copy the file to `./files`
First prepare the image files, for the respective platform as stated above

### Step 2
A helpful tool for converting the icons is [iconverticons.com](https://iconverticons.com/online/).

Copy the images to `./files`.

```
$ ls -a ./files

google-photos.png
google-photos.ico
google-photos.icns
```

Add an entry for the file to `./data/gitCloud.yml`
### Step 2

For example, add the following lines to the end of the file.
Add an entry for the file to `./_data/gitCloud.yml`, in alphabetical order

```yml
- name: facebook
href: files/facebook.ico
- name: google-photos
href: files/google-photos.png
- name: google-photos
href: files/google-photos.ico
- name: google-photos
href: files/google-photos.icns
```

### Step 3

You're done! Submit a pull request with the changes and I'll merge them in as soon as possible.

## Helper Scripts

The main [`./addIcon`](addIcon) script is also provided which takes an input `.png` or `.svg` and does steps 1 and 2 automatically for you.

This script only runs on OSX with XCode installed as [iconutil](https://developer.apple.com/library/mac/documentation/GraphicsAnimation/Conceptual/HighResolutionOSX/Optimizing/Optimizing.html) is required for conversion to a `.icns` file.

Other helpful scripts are:

- [`./bin/convertToIcns`](bin/convertToIcns)
- [`./bin/convertToIco`](bin/convertToIco) (Supported on Linux)
- [`./bin/convertToPng`](bin/convertToPng) (Supported on Linux)

You need the following dependencies:

- [ImageMagick](http://www.imagemagick.org/script/index.php) with `convert` and `identify` in your `$PATH` (required for `.png` input)
- [CairoSVG](https://cairosvg.org) (required for `.svg` input)
- [iconutil](https://developer.apple.com/library/mac/documentation/GraphicsAnimation/Conceptual/HighResolutionOSX/Optimizing/Optimizing.html): Xcode needs to be installed (required to generate `.icns`)

## Work In Progress

- [ ] Proper naming conventions (Suggessions are welcome!)
- [ ] CI tests for pull requests
- [ ] Just use a `.png` and let CI convert the icons to the other formats
- [ ] Just use a `.png` or `.svg` and let CI convert the icons to the other formats

## Credits

Expand Down
Loading