File tree Expand file tree Collapse file tree 3 files changed +19
-7
lines changed Expand file tree Collapse file tree 3 files changed +19
-7
lines changed Original file line number Diff line number Diff line change 34
34
key : ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
35
35
36
36
- name : Update Ruffle
37
+ env :
38
+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
37
39
run : yarn run update-ruffle
38
40
39
41
- name : Run Build
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
- SCRIPT_DIR=$( cd -- " $( dirname -- " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd )
2
+ SCRIPT_DIR=$( cd -- " $( dirname -- " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd)
3
3
4
4
RUFFLE_DIR=$SCRIPT_DIR
5
5
6
- SELFHOST_URL=$( curl " https://api.github.com/repos/ruffle-rs/ruffle/releases" | jq -r ' .[0].assets[] | select(.name | contains("selfhosted")) | .browser_download_url' )
6
+ if [ -z " $GH_TOKEN " ]; then
7
+ SELFHOST_URL=$( curl -s " https://api.github.com/repos/ruffle-rs/ruffle/releases" | jq -r ' .[0].assets[] | select(.name | contains("selfhosted")) | .browser_download_url' )
8
+ else
9
+ SELFHOST_URL=$( curl -s --header " Authorization: Bearer $GH_TOKEN " " https://api.github.com/repos/ruffle-rs/ruffle/releases" | jq -r ' .[0].assets[] | select(.name | contains("selfhosted")) | .browser_download_url' )
10
+ fi
7
11
8
12
echo " $SELFHOST_URL "
9
13
10
- curl -L -o $RUFFLE_DIR /ruffle.zip " $SELFHOST_URL "
14
+ curl -L -o " $RUFFLE_DIR /ruffle.zip" " $SELFHOST_URL "
11
15
12
- rm $RUFFLE_DIR /* .js $RUFFLE_DIR /* .wasm
16
+ rm " $RUFFLE_DIR /*.js" " $RUFFLE_DIR /*.wasm"
13
17
14
- cd $RUFFLE_DIR
15
- unzip $RUFFLE_DIR /ruffle.zip * .js * .wasm
18
+ cd " $RUFFLE_DIR " || exit 1
19
+ unzip " $RUFFLE_DIR /ruffle.zip" " *.js" " *.wasm"
16
20
17
- rm $RUFFLE_DIR /ruffle.zip
21
+ rm " $RUFFLE_DIR /ruffle.zip"
Original file line number Diff line number Diff line change @@ -41,10 +41,16 @@ export {
41
41
Replay ,
42
42
Sorter ,
43
43
URLResources ,
44
+ /**
45
+ * @deprecated use {@linkcode ReplayWebPage}
46
+ */
44
47
Embed ,
48
+ Embed as ReplayWebPage ,
45
49
SWManager ,
46
50
} ;
47
51
48
52
export type { ItemType , URLResource } from "./types" ;
49
53
54
+ export type { EmbedReplayEvent } from "./item" ;
55
+
50
56
export * from "./misc" ;
You can’t perform that action at this time.
0 commit comments