Bläddra i källkod

Create needed directory in windows ci

Arkadiusz Ryś 2 år sedan
förälder
incheckning
0d83da05f7
1 ändrade filer med 5 tillägg och 3 borttagningar
  1. 5 3
      .gitlab-ci.yml

+ 5 - 3
.gitlab-ci.yml

@@ -53,16 +53,18 @@ build-windows-exe:
   stage: build
   before_script:
     - echo "Building windows executable"
+    - apt install -qy zip
   script:
     - xvfb-run sh -c "wine pip install --no-warn-script-location -r requirements.py; wineserver -w"
 #    - pyinstaller graph_exploring_tool/__main__.py --onefile --add-data data:data --collect-all graph-exploring-tool --windowed --noconfirm
     - xvfb-run sh -c "wine pyinstaller graph_exploring_tool/__main__.py --onefile; wineserver -w"
-    - cp -r data/* ./dist/data/
-    - zip files dist
+    - mkdir -p dist/data/
+    - cp -r data/* dist/data/
+    - zip -r graph-exploring-tool.zip dist
     - ls -la dist
 #  only:
 #    - tags
   artifacts:
     name: "graph-exploring-tool-%CI_TAG.zip" # % because of windoze https://docs.gitlab.com/ee/ci/jobs/job_artifacts.html#with-a-windows-runner-or-shell-executor
     paths:
-      - ./dist/graph-exploring-tool.zip
+      - ./graph-exploring-tool.zip