upload lvgl to server].
All checks were successful
Deploy / Build (push) Successful in 4m52s

This commit is contained in:
amass 2024-11-23 20:58:21 +08:00
parent 872d633a13
commit 45321dc2a2
3 changed files with 18 additions and 1 deletions

View File

@ -36,6 +36,7 @@ jobs:
echo -n "提交消息: ${{ github.event.head_commit.message }}">> notify.tpl echo -n "提交消息: ${{ github.event.head_commit.message }}">> notify.tpl
cat notify.tpl | envsubst | jq -sR . | xargs -0 -I {} curl -H "Content-Type: application/json" -X POST -d '{"type":"text","msg":{} }' https://amass.fun/notify cat notify.tpl | envsubst | jq -sR . | xargs -0 -I {} curl -H "Content-Type: application/json" -X POST -d '{"type":"text","msg":{} }' https://amass.fun/notify
- run: resources/build.sh build - run: resources/build.sh build
- run: resources/build.sh lvgl
- name: Copy app wt resources to server - name: Copy app wt resources to server
uses: appleboy/scp-action@v0.1.7 uses: appleboy/scp-action@v0.1.7
with: with:
@ -46,6 +47,16 @@ jobs:
strip_components: 1 strip_components: 1
source: "resources/*.css,resources/*.xml" source: "resources/*.css,resources/*.xml"
target: /root/Server/resources target: /root/Server/resources
- name: Copy lvgl to server
uses: appleboy/scp-action@v0.1.7
with:
host: ${{ vars.YUYUN_SERVER }}
username: ${{ vars.YUYUN_USER }}
password: ${{ secrets.SERVER_ROOT_PASSWORD }}
overwrite: true
strip_components: 2
source: build/LvglApplication/lvglapp*
target: /root/Server/amass_blog
- name: Copy files to server - name: Copy files to server
uses: appleboy/scp-action@v0.1.7 uses: appleboy/scp-action@v0.1.7
with: with:

View File

@ -46,7 +46,7 @@
canvas: (function() { canvas: (function() {
return canvas; return canvas;
})(), })(),
arguments: [ String(rect.width), String(rect.height), siteURL.searchParams.get("example") ?? "default" ], arguments: [String(rect.width * window.devicePixelRatio), String(rect.height * window.devicePixelRatio), siteURL.searchParams.get("example") ?? "default"],
onRuntimeInitialized: function () { onRuntimeInitialized: function () {
// const canvas = document.getElementById('canvas'); // const canvas = document.getElementById('canvas');
// const observer = new ResizeObserver(entries => { // const observer = new ResizeObserver(entries => {

View File

@ -59,6 +59,12 @@ location = /wt/app.js {
proxy_pass http://wt; proxy_pass http://wt;
} }
location ~ ^/lvgl/.+$ {
root amass_blog;
index index.html index.htm;
try_files /lvgl/index.html =404;
}
location /freedom { location /freedom {
if ($http_upgrade != "websocket") { # WebSocket协商失败时返回404 if ($http_upgrade != "websocket") { # WebSocket协商失败时返回404
return 404; return 404;