1
0
mirror of https://github.com/konpa/devicon.git synced 2025-09-02 02:42:48 +02:00

build(npm): automatically run build-icons for correct os (#2360)

This commit is contained in:
ReenigneArcher
2025-04-21 10:11:20 -04:00
committed by GitHub
parent 59215377cf
commit 4a82187a41
3 changed files with 27 additions and 9 deletions

View File

@@ -269,10 +269,10 @@ https://www.python.org/downloads/
> **Note**
> Make sure your Python install includes [pip](https://pypi.org/project/pip/)
<h3>Install Selenium</h3>
<h3>Install Dependencies</h3>
```bash
python3 -m pip install --upgrade pip && pip install selenium==4.1.0 requests==2.25.1
python -m pip install -r ./.github/scripts/requirements.txt
```
<h3 id="building-icons">Build the new icons</h3>
@@ -281,11 +281,7 @@ python3 -m pip install --upgrade pip && pip install selenium==4.1.0 requests==2.
Usually, this is done on each release, but you can have a sneak peek before a release.</p>
```bash
# Linux/Unix
npm run build-icons
# Windows
python3 ./.github/scripts/icomoon_build_githubless.py ./.github/scripts/build_assets/geckodriver-v0.32.2-win64/geckodriver.exe ./icomoon.json ./devicon.json ./icons ./ --headless
```
<i>The process might take a while, depending on your operating system's speed and the amount of icons.</i>
@@ -311,7 +307,7 @@ npm run dev # Will run on port 8000
<p>Or this command, which does exactly the same, but the port can be customized.</p>
```bash
python3 -m http.server <port>
python -m http.server <port>
```
<p>You're done now! :tada: Your build of Devicons should be available at <code>https://localhost:8000</code> (or the desired port).</p>