Skip to content

Commit

Permalink
Schema, SL config and actions update.
Browse files Browse the repository at this point in the history
  • Loading branch information
iwatkot committed Dec 21, 2024
1 parent 4a85861 commit c0d35ce
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/issues.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
name: Answer issues

on:
issues:
types:
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/update_readme.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Update docker tag in README
on:
release:
types: [published]

jobs:
update-readme:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Update README.md
run: |
sed -i "s|docker run -d -p 8501:8501 --name maps4fs iwatkot/maps4fs.*|docker run -d -p 8501:8501 --name maps4fs iwatkot/maps4fs:${{ github.ref_name }}|g" README.md
- name: Commit changes
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add README.md
git commit -m "Update Docker tag in README to ${{ github.ref_name }}"
git push
2 changes: 1 addition & 1 deletion .streamlit/config.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# .streamlit/config.toml

[server]
maxUploadSize = 500
maxUploadSize = 1000
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ RUN apt-get update && apt-get install -y \

WORKDIR /usr/src/app

COPY .streamlit /usr/src/app/.streamlit
COPY data /usr/src/app/data
COPY docs /usr/src/app/docs
COPY webui /usr/src/app/webui
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@
<p align="center">
<img src="https://github.com/user-attachments/assets/cf8f5752-9c69-4018-bead-290f59ba6976"><br>
🌎 Detailed terrain based on real-world data.<br><br>
<img src="https://github.com/user-attachments/assets/7f238ab4-9ff4-4c6e-ba07-5796be012baa"><br>
🛰️ Realistic background terrain objects with satellite images.<br><br>
<img src="https://github.com/user-attachments/assets/dc40d0bb-c20b-411c-8833-9925d0389452"><br>
🛰️ Realistic background terrain with satellite images.<br><br>
<img src="https://github.com/user-attachments/assets/80e5923c-22c7-4dc0-8906-680902511f3a"><br>
🗒️ True-to-life blueprints for fast and precise modding.<br><br>
<img width="480" src="https://github.com/user-attachments/assets/1a8802d2-6a3b-4bfa-af2b-7c09478e199b"><br>
Expand Down Expand Up @@ -88,7 +88,7 @@ So, jump to [Docker version](#option-2-docker-version) to launch the tool with o
### 😎 For advanced users
**Option 2:** Run the Docker version in your browser. Launch the following command in your terminal:
```bash
docker run -d -p 8501:8501 iwatkot/maps4fs
docker run -d -p 8501:8501 --name maps4fs iwatkot/maps4fs
```
And open [http://localhost:8501](http://localhost:8501) in your browser.<br>
If you don't know how to use Docker, navigate to the [Docker version](#option-2-docker-version), it's really simple.<br>
Expand Down Expand Up @@ -151,7 +151,7 @@ You can launch the project with minimalistic UI in your browser using Docker. Fo
1. Install [Docker](https://docs.docker.com/get-docker/) for your OS.
2. Run the following command in your terminal:
```bash
docker run -d -p 8501:8501 iwatkot/maps4fs
docker run -d -p 8501:8501 --name maps4fs iwatkot/maps4fs
```
3. Open your browser and go to [http://localhost:8501](http://localhost:8501).
4. Fill in the required fields and click on the `Generate` button.
Expand Down
4 changes: 2 additions & 2 deletions data/fs25-texture-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
{
"name": "grassDirtPatchy",
"count": 2,
"tags": { "natural": ["wood", "tree_row"] },
"tags": { "natural": ["wood", "tree_row", "forest"] },
"width": 2,
"color": [0, 252, 124]
},
Expand Down Expand Up @@ -199,7 +199,7 @@
{
"name": "sand",
"count": 2,
"tags": { "natural": "water", "waterway": true },
"tags": { "natural": "water", "waterway": true, "landuse": "basin" },
"width": 10,
"color": [255, 20, 20]
}
Expand Down

0 comments on commit c0d35ce

Please sign in to comment.