12
12
strategy :
13
13
fail-fast : false
14
14
matrix :
15
- platform : [macos-latest, ubuntu-20.04, windows-latest]
15
+ platform : [macos-latest, macos-13, ubuntu-20.04, windows-latest]
16
16
17
17
runs-on : ${{ matrix.platform }}
18
18
steps :
@@ -41,10 +41,11 @@ jobs:
41
41
git clone -b gh-pages --depth 1 https://github.com/railmapgen/rmg-templates.git
42
42
git clone -b gh-pages --depth 1 https://github.com/railmapgen/rmp.git
43
43
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
44
45
- name : Setup python
45
46
uses : actions/setup-python@v4
46
47
with :
47
- python-version : ' 3.10 '
48
+ python-version : ' 3.13 '
48
49
- name : Get date
49
50
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()"
50
51
- name : Use date as version in tauri's package
@@ -61,12 +62,13 @@ jobs:
61
62
- name : Update instance in info.json
62
63
run : |
63
64
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();"
70
72
- name : Get versions of each project
71
73
run : |
72
74
python3 -c "import urllib.request;import json;import os;
@@ -76,13 +78,15 @@ jobs:
76
78
rmg_templates=json.loads(urllib.request.urlopen('https://railmapgen.github.io/rmg-templates/info.json').read())['version'];
77
79
rmp=json.loads(urllib.request.urlopen('https://railmapgen.github.io/rmp/info.json').read())['version'];
78
80
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'];
79
82
f=open(os.getenv('GITHUB_ENV'), 'a');
80
83
f.write(f'railmapgen={railmapgen}\n');
81
84
f.write(f'rmg={rmg}\n');
82
85
f.write(f'rmg_palette={rmg_palette}\n');
83
86
f.write(f'rmg_templates={rmg_templates}\n');
84
87
f.write(f'rmp={rmp}\n');
85
88
f.write(f'rmp_gallery={rmp_gallery}\n');
89
+ f.write(f'rmp_designer={rmp_designer}\n');
86
90
f.close()"
87
91
- uses : tauri-apps/tauri-action@v0
88
92
env :
@@ -102,7 +106,8 @@ jobs:
102
106
|rmg-templates |`${{ env.rmg_templates }}`|
103
107
|rmp |`${{ env.rmp }}` |
104
108
|rmp-gallery |`${{ env.rmp_gallery }}` |
109
+ |rmp-designer |`${{ env.rmp_designer }}` |
105
110
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.
107
112
releaseDraft : false
108
113
prerelease : false
0 commit comments