From a97e6953b0dc903b2774251965f69d715820a518 Mon Sep 17 00:00:00 2001 From: Adam Olech Date: Tue, 17 Jan 2023 16:56:29 +0100 Subject: [PATCH] CI: change version format --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 21777bf..c615292 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,8 @@ jobs: run: python setup.py egg_info && pip3 install -r *.egg-info/requires.txt - name: Build static binary run: | - echo "__version__ = \"$(git rev-parse HEAD)\"" > dockersave/_version.py + truncate -s-1 dockersave/_version.py + echo -n " + \"-$(git rev-parse HEAD)\"" >> dockersave/_version.py pyinstaller -F dockersave/cli.py mv dist/cli dist/dockersave staticx dist/dockersave dockersave-static