Skip to content

Commit 8b50f86

Browse files
committed
#139 Add rmp-designer to offline application
1 parent 402ee0a commit 8b50f86

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

.github/workflows/build-tauri.yml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
fail-fast: false
1414
matrix:
15-
platform: [macos-latest, ubuntu-20.04, windows-latest]
15+
platform: [macos-latest, macos-13, ubuntu-20.04, windows-latest]
1616

1717
runs-on: ${{ matrix.platform }}
1818
steps:
@@ -41,10 +41,11 @@ jobs:
4141
git clone -b gh-pages --depth 1 https://github.com/railmapgen/rmg-templates.git
4242
git clone -b gh-pages --depth 1 https://github.com/railmapgen/rmp.git
4343
git clone -b gh-pages --depth 1 https://github.com/railmapgen/rmp-gallery.git
44+
git clone -b gh-pages --depth 1 https://github.com/railmapgen/rmp-designer.git
4445
- name: Setup python
4546
uses: actions/setup-python@v4
4647
with:
47-
python-version: '3.10'
48+
python-version: '3.13'
4849
- name: Get date
4950
run: python -c "from datetime import date;import os;f=open(os.getenv('GITHUB_ENV'), 'a');f.write('date='+date.today().strftime('%Y%m%d'));f.close()"
5051
- name: Use date as version in tauri's package
@@ -61,12 +62,13 @@ jobs:
6162
- name: Update instance in info.json
6263
run: |
6364
python -c "import json;
64-
f=open('ui/info.json', 'r+');info=json.load(f);info['instance']='Tauri';f.seek(0);json.dump(info,f,indent=2);f.truncate();f.close()
65-
f=open('ui/rmg/info.json', 'r+');info=json.load(f);info['instance']='Tauri';f.seek(0);json.dump(info,f,indent=2);f.truncate();f.close()
66-
f=open('ui/rmg-palette/info.json', 'r+');info=json.load(f);info['instance']='Tauri';f.seek(0);json.dump(info,f,indent=2);f.truncate();f.close()
67-
f=open('ui/rmg-templates/info.json', 'r+');info=json.load(f);info['instance']='Tauri';f.seek(0);json.dump(info,f,indent=2);f.truncate();f.close()
68-
f=open('ui/rmp/info.json', 'r+');info=json.load(f);info['instance']='Tauri';f.seek(0);json.dump(info,f,indent=2);f.truncate();f.close()
69-
f=open('ui/rmp-gallery/info.json', 'r+');info=json.load(f);info['instance']='Tauri';f.seek(0);json.dump(info,f,indent=2);f.truncate();f.close()"
65+
f=open('ui/info.json', 'r+');info=json.load(f);info['instance']='Tauri';f.seek(0);json.dump(info,f,indent=2);f.truncate();f.close();
66+
f=open('ui/rmg/info.json', 'r+');info=json.load(f);info['instance']='Tauri';f.seek(0);json.dump(info,f,indent=2);f.truncate();f.close();
67+
f=open('ui/rmg-palette/info.json', 'r+');info=json.load(f);info['instance']='Tauri';f.seek(0);json.dump(info,f,indent=2);f.truncate();f.close();
68+
f=open('ui/rmg-templates/info.json', 'r+');info=json.load(f);info['instance']='Tauri';f.seek(0);json.dump(info,f,indent=2);f.truncate();f.close();
69+
f=open('ui/rmp/info.json', 'r+');info=json.load(f);info['instance']='Tauri';f.seek(0);json.dump(info,f,indent=2);f.truncate();f.close();
70+
f=open('ui/rmp-gallery/info.json', 'r+');info=json.load(f);info['instance']='Tauri';f.seek(0);json.dump(info,f,indent=2);f.truncate();f.close();
71+
f=open('ui/rmp-designer/info.json', 'r+');info=json.load(f);info['instance']='Tauri';f.seek(0);json.dump(info,f,indent=2);f.truncate();f.close();"
7072
- name: Get versions of each project
7173
run: |
7274
python3 -c "import urllib.request;import json;import os;
@@ -76,13 +78,15 @@ jobs:
7678
rmg_templates=json.loads(urllib.request.urlopen('https://railmapgen.github.io/rmg-templates/info.json').read())['version'];
7779
rmp=json.loads(urllib.request.urlopen('https://railmapgen.github.io/rmp/info.json').read())['version'];
7880
rmp_gallery=json.loads(urllib.request.urlopen('https://railmapgen.github.io/rmp-gallery/info.json').read())['version'];
81+
rmp_designer=json.loads(urllib.request.urlopen('https://railmapgen.github.io/rmp-designer/info.json').read())['version'];
7982
f=open(os.getenv('GITHUB_ENV'), 'a');
8083
f.write(f'railmapgen={railmapgen}\n');
8184
f.write(f'rmg={rmg}\n');
8285
f.write(f'rmg_palette={rmg_palette}\n');
8386
f.write(f'rmg_templates={rmg_templates}\n');
8487
f.write(f'rmp={rmp}\n');
8588
f.write(f'rmp_gallery={rmp_gallery}\n');
89+
f.write(f'rmp_designer={rmp_designer}\n');
8690
f.close()"
8791
- uses: tauri-apps/tauri-action@v0
8892
env:
@@ -102,7 +106,8 @@ jobs:
102106
|rmg-templates |`${{ env.rmg_templates }}`|
103107
|rmp |`${{ env.rmp }}` |
104108
|rmp-gallery |`${{ env.rmp_gallery }}` |
109+
|rmp-designer |`${{ env.rmp_designer }}` |
105110
106-
Rail Map Toolkit is able to run offline with these packages, but we do RECOMMEND using the online [GitHub Pages](https://railmapgen.github.io/) as it provides the latest features of Rail Map Toolkit. The packages below are only suitable for extreme situations where users are behind the notorious firewall or simply offline. All resources are cached and bundled.
111+
Rail Map Toolkit is able to run offline with these packages, but we do RECOMMEND using the [Official Website](https://railmapgen.org/) as it provides the latest features of Rail Map Toolkit. The packages below are only suitable for extreme situations where users are behind the notorious firewall or simply offline. All resources are cached and bundled.
107112
releaseDraft: false
108113
prerelease: false

0 commit comments

Comments
 (0)