liuyuqi-cnb 1 day ago
parent
commit
0cbeaae9dc
3 changed files with 14 additions and 10 deletions
  1. 11 8
      .github/workflows/build-windows.yml
  2. 1 1
      docker-compose.debug.yml
  3. 2 1
      docker-compose.yml

+ 11 - 8
.github/workflows/build-windows.yml

@@ -31,10 +31,11 @@ jobs:
         pip install pyinstaller
         
     - name: Create data directory structure
+      shell: pwsh
       run: |
-        if not exist "dist\data" mkdir dist\data
-        copy data\a.csv dist\data\
-        copy data\b.csv dist\data\
+        New-Item -ItemType Directory -Path "dist\data" -Force | Out-Null
+        Copy-Item data\a.csv dist\data\
+        Copy-Item data\b.csv dist\data\
         
     - name: Build GUI executable
       run: |
@@ -45,12 +46,14 @@ jobs:
         pyinstaller --clean --noconfirm main.spec
         
     - name: Create release package
+      shell: pwsh
       run: |
-        if not exist "release" mkdir release
-        copy dist\searchdomain_gui.exe release\
-        copy dist\searchdomain_cli.exe release\
-        copy data\a.csv release\data\
-        copy data\b.csv release\data
+        New-Item -ItemType Directory -Path "release" -Force | Out-Null
+        New-Item -ItemType Directory -Path "release\data" -Force | Out-Null
+        Copy-Item dist\searchdomain_gui.exe release\
+        Copy-Item dist\searchdomain_cli.exe release\
+        Copy-Item data\a.csv release\data\
+        Copy-Item data\b.csv release\data\
         
     - name: Upload artifacts
       uses: actions/upload-artifact@v4

+ 1 - 1
docker-compose.debug.yml

@@ -2,7 +2,7 @@ version: '3.4'
 
 services:
   searchdomain:
-    image: searchdomain
+    image: jianboy/earchdomain:latest
     build:
       context: .
       dockerfile: ./Dockerfile

+ 2 - 1
docker-compose.yml

@@ -2,4 +2,5 @@ version: '3.4'
 
 services:
   searchdomain:
-    image: jianboy/earchdomain
+    image: jianboy/earchdomain:latest
+