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:
10
README.md
10
README.md
@@ -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>
|
||||
|
Reference in New Issue
Block a user