1
- name : Publish railmapgen.local
1
+ name : Publish App
2
2
on :
3
3
workflow_dispatch :
4
4
schedule :
7
7
8
8
jobs :
9
9
publish-tauri :
10
- permissions :
11
- contents : write
10
+ permissions : write-all
12
11
strategy :
13
12
fail-fast : false
14
13
matrix :
15
14
include :
16
15
- platform : ' macos-latest'
17
- args : ' --target aarch64-apple-darwin'
16
+ target : ' aarch64-apple-darwin'
18
17
- platform : ' macos-latest'
19
- args : ' --target x86_64-apple-darwin'
20
- - platform : ' ubuntu-22.04'
21
- args : ' '
18
+ target : ' x86_64-apple-darwin'
19
+ - platform : ' ubuntu-latest'
20
+ target : ' x86_64-unknown-linux-gnu'
21
+ - platform : ' ubuntu-latest'
22
+ target : ' aarch64-unknown-linux-gnu'
22
23
- platform : ' windows-latest'
23
- args : ' '
24
+ target : ' x86_64-pc-windows-msvc'
25
+ - platform : ' windows-latest'
26
+ target : ' aarch64-pc-windows-msvc'
24
27
25
28
runs-on : ${{ matrix.platform }}
26
29
steps :
@@ -32,14 +35,13 @@ jobs:
32
35
- name : Install Rust stable
33
36
uses : dtolnay/rust-toolchain@stable
34
37
with :
35
- # Those targets are only used on macos runners so it's in an `if` to slightly speed up windows and linux builds.
36
- targets : ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
38
+ target : ${{ matrix.target }}
37
39
- name : Rust cache
38
40
uses : swatinem/rust-cache@v2
39
41
with :
40
42
workspaces : ' ./tauri -> target'
41
43
- name : install dependencies (ubuntu only)
42
- if : matrix.platform == 'ubuntu-22.04 '
44
+ if : matrix.platform == 'ubuntu-latest '
43
45
run : |
44
46
sudo apt-get update
45
47
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
80
82
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();
81
83
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();
82
84
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();
83
- 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();"
84
- 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();
85
+ 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();
86
+ 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();"
85
87
- name : Get versions of each project
86
88
run : |
87
89
python3 -c "import urllib.request;import json;import os;
@@ -127,4 +129,4 @@ jobs:
127
129
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.
128
130
releaseDraft : false
129
131
prerelease : false
130
- args : ${{ matrix.args }}
132
+ args : --target ${{ matrix.target }}
0 commit comments