Skip to content

Commit

Permalink
releases/1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zanllp committed Aug 21, 2024
1 parent 8ac2676 commit cb1aa7f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/tauri_app_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ jobs:
script-name: app.py
output-file: iib_api_server
output-dir: out
include-data-dir: |
vue/dist=vue/dist
- name: Upload Server Artifacts
uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -196,6 +198,16 @@ jobs:
name: bundle-${{ env.VERSION }}-Linux
path: artifacts

- uses: actions/download-artifact@v3
with:
name: iib_api_server-${{ env.VERSION }}-Windows
path: artifacts

- uses: actions/download-artifact@v3
with:
name: iib_api_server-${{ env.VERSION }}-Linux
path: artifacts

- name: Release
uses: softprops/action-gh-release@v1
with:
Expand Down
4 changes: 2 additions & 2 deletions scripts/iib/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
except Exception as e:
logger.error(e)

index_html_path = os.path.join(cwd, "vue/dist/index.html") # 在app.py也被使用
index_html_path = os.path.normpath(os.path.join(__file__, "../","vue/dist/index.html")) if is_exe_ver else os.path.join(cwd, "vue/dist/index.html") # 在app.py也被使用


send_img_path = {"value": ""}
Expand Down Expand Up @@ -746,7 +746,7 @@ def index_bd():
return Response(content=content, media_type="text/html")
return FileResponse(index_html_path)

static_dir = f"{cwd}/vue/dist"
static_dir = os.path.normpath(os.path.join(__file__, "../","vue/dist")) if is_exe_ver else f"{cwd}/vue/dist"
@app.get(api_base + "/fe-static/{file_path:path}")
async def serve_static_file(file_path: str):
file_full_path = f"{static_dir}/{file_path}"
Expand Down

0 comments on commit cb1aa7f

Please sign in to comment.