Skip to content

Commit

Permalink
Update: README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
NtskwK committed Jun 12, 2024
1 parent 4f656ad commit ba472c9
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 57 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
key: ${{ runner.os }}-otb-${{ hashFiles('**/main.py') }}
restore-keys: |
${{ runner.os }}-otb-
- if: steps.otb-cache.outputs.cache-hit != 'true'
- if: ${{ steps.otb-cache.outputs.cache-hit != 'true'}}
name: download OTB-9.0.0-Win64.zip
uses: gamedev-thingy/Download-Extract@done
with:
Expand Down Expand Up @@ -74,17 +74,19 @@ jobs:
- name: building and pack
run: |
mkdir "dist/win-unpacked/bin/OTB-9.0.0-Win64"
pip install -r requirements.txt
pip install nuitka
nuitka main.py
npm install
npm run pack
cp -r "data" "main.dist"
dir main.dist
dir
ren "main.dist" "bin"
cp -r "bin" "dist/win-unpacked/"
cp -r "bin" "dist/win-unpacked"
cp -r "OTB-9.0.0-Win64" "dist/win-unpacked/bin"
cp -r "data" "dist/win-unpacked/bin"
dir
dir dist
dir "dist/win-unpacked"
dir "dist/win-unpacked/bin"
Expand Down
20 changes: 12 additions & 8 deletions .github/workflows/build_parallel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,21 +115,22 @@ jobs:
run: |
npm install
npm run pack
tree
- name: Upload
uses: actions/upload-artifact@v4
with:
# Artifact name
name: electron_app
# A file, directory or wildcard pattern that describes what to upload
path: "build/win-unpacke/*"
path: "dist/win-unpacked"

pack_app:
needs: [download_otb, build_python_app, build_electron_app]
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/download0artifact@v4
- uses: actions/download-artifact@v4
with:
# Name of the artifact to download.
# If unspecified, all artifacts for the run are downloaded.
Expand Down Expand Up @@ -166,23 +167,26 @@ jobs:
# Optional. Default is ${{ github.run_id }}
# run-id:

- uses: actions/download0artifact@v4
- uses: actions/download-artifact@v4
with:
# Name of the artifact to download.
# If unspecified, all artifacts for the run are downloaded.
# Optional.
name: OTB-9.0.0-Win64
name: bin

- uses: actions/download0artifact@v4
- uses: actions/download-artifact@v4
with:
# Name of the artifact to download.
# If unspecified, all artifacts for the run are downloaded.
# Optional.
name: electron_app
path: win_64

- run: |
7z x -o"win_64" "bin.zip"
7z x -o"win_64/bin" "OTB-9.0.0-Win64.zip"
dir
dir bin
dir electron_app
dir OTB-9.0.0-Win64
dir "win_64"
dir "win_64/bin"
dir "win_64/bin/OTB-9.0.0-Win64"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ main.build/
main.dist/
main.onefile-build
main.exe
main.spec

# venv
venv/
Expand Down
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@

2. 我看不懂编译说明

请移步 `Github Action`查看具体执行流程 ,本项目的自动编译由Github Action驱动。
~~请移步 `Github Action`查看具体执行流程 ,本项目的自动编译由Github Action驱动。~~ 还没调试好。

**请不要在生产环境使用action内编译的版本,他们不一定是稳定的!**

3. 有关跨平台支持

Expand All @@ -96,3 +98,11 @@
可以自行安装对应平台的OTB并修改源码进行尝试。

欢迎提交PR!

## TODO

- [ ] 解决action编译版无法使用的问题

- [ ] Linux支持

- [ ] 支持高分系列15米级数据正射校正
43 changes: 0 additions & 43 deletions main.spec

This file was deleted.

0 comments on commit ba472c9

Please sign in to comment.