diff --git a/.github/workflows/build-tauri.yml b/.github/workflows/build-tauri.yml index 35793a7..94313c3 100644 --- a/.github/workflows/build-tauri.yml +++ b/.github/workflows/build-tauri.yml @@ -53,6 +53,7 @@ jobs: git clone -b gh-pages --depth 1 https://github.com/railmapgen/rmp.git git clone -b gh-pages --depth 1 https://github.com/railmapgen/rmp-gallery.git git clone -b gh-pages --depth 1 https://github.com/railmapgen/rmp-designer.git + git clone -b gh-pages --depth 1 https://github.com/railmapgen/rma.git - name: Setup python uses: actions/setup-python@v4 with: @@ -80,6 +81,7 @@ jobs: 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(); 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(); 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();" + f=open('ui/rma/info.json', 'r+');info=json.load(f);info['instance']='Tauri';f.seek(0);json.dump(info,f,indent=2);f.truncate();f.close(); - name: Get versions of each project run: | python3 -c "import urllib.request;import json;import os; @@ -90,6 +92,7 @@ jobs: rmp=json.loads(urllib.request.urlopen('https://railmapgen.github.io/rmp/info.json').read())['version']; rmp_gallery=json.loads(urllib.request.urlopen('https://railmapgen.github.io/rmp-gallery/info.json').read())['version']; rmp_designer=json.loads(urllib.request.urlopen('https://railmapgen.github.io/rmp-designer/info.json').read())['version']; + rma=json.loads(urllib.request.urlopen('https://railmapgen.github.io/rma/info.json').read())['version']; f=open(os.getenv('GITHUB_ENV'), 'a'); f.write(f'railmapgen={railmapgen}\n'); f.write(f'rmg={rmg}\n'); @@ -98,6 +101,7 @@ jobs: f.write(f'rmp={rmp}\n'); f.write(f'rmp_gallery={rmp_gallery}\n'); f.write(f'rmp_designer={rmp_designer}\n'); + f.write(f'rma={rma}\n'); f.close()" - uses: tauri-apps/tauri-action@v0 env: @@ -118,6 +122,7 @@ jobs: |rmp |`${{ env.rmp }}` | |rmp-gallery |`${{ env.rmp_gallery }}` | |rmp-designer |`${{ env.rmp_designer }}` | + |rma |`${{ env.rma }}` | 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. releaseDraft: false diff --git a/src/util/asset-enablements.ts b/src/util/asset-enablements.ts index 7947439..1a71e52 100644 --- a/src/util/asset-enablements.ts +++ b/src/util/asset-enablements.ts @@ -44,6 +44,11 @@ export const assetEnablement: Record = { url: '/rmp/', assetType: 'app', }, + rma: { + name: 'Rail Map Announcer', + url: '/rma/', + assetType: 'app', + }, 'rmg-palette': { name: 'Palette', url: '/rmg-palette/',