Browse Source

windows版本错误,增加依赖 cffi

liuyuqi-dellpc 6 months ago
parent
commit
adbb3ee71f
4 changed files with 4 additions and 1 deletions
  1. 1 0
      .github/workflows/build.yml
  2. 1 0
      .gitignore
  3. 1 1
      main.py
  4. 1 0
      requirements.txt

+ 1 - 0
.github/workflows/build.yml

@@ -23,6 +23,7 @@ jobs:
         run: |
           echo "::set-output name=hash::$(git rev-parse --short HEAD)"
           echo "::set-output name=date::$(date +%Y%m%d)"
+          echo "::set-output name=url::$(git remote get-url origin)"
 
       - name: Set Up Python
         uses: actions/setup-python@v4

+ 1 - 0
.gitignore

@@ -58,3 +58,4 @@ docs/_build/
 # PyBuilder
 target/
 
+account.json

+ 1 - 1
main.py

@@ -11,7 +11,7 @@ import json,os
 
 if __name__=='__main__':
     current_run_path = os.path.dirname(os.path.realpath(__file__))
-    with open(os.path.join(current_run_path,"account.example.json"), "r") as file:
+    with open(os.path.join(current_run_path,"account.json"), "r") as file:
         data = json.load(file)
         owner=data["owner"]
         token=data["token"]

+ 1 - 0
requirements.txt

@@ -1,3 +1,4 @@
 requests==2.22.0
 pynacl==1.5.0
+cffi==1.16.0