File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ # Change directory to the specified directory
4+ cd /tmp/dist/kratos-9.3.3/
5+
6+ # Add execute permission to all .bat files in the directory
7+ # chmod 755 *.bat
8+
9+ # Create a tgz file from the directory
10+ tar -czf ../kratos-9.3.3-linux-64.tgz *
11+
Original file line number Diff line number Diff line change 1+ FROM ubuntu
2+
3+ WORKDIR /tmp
4+ COPY create-release.sh create-release.sh
5+ RUN chmod 755 /tmp/create-release.sh
6+
7+ CMD /tmp/create-release.sh
8+ # docker build -t linux_releaser -f linux-releaser.dockerfile .
9+ # docker run -v ${PWD}/dist:/tmp/dist linux_releaser
Original file line number Diff line number Diff line change 11set VERSION = 9.3.3
2- git checkout master
3- git fetch -p
4- git pull -p
2+ @ REM git checkout master
3+ @ REM git fetch -p
4+ @ REM git pull -p
55@ REM set BRANCH=Release-%VERSION%
66@ REM git branch %BRANCH%
77@ REM git checkout %BRANCH%
88cd ..
99mkdir dist
10- set FOLDER = dist\kratos-%VERSION% -win-64\kratos.gid
10+ set FOLDER = dist\kratos-%VERSION%
1111mkdir %FOLDER%
12- xcopy /s/e/y kratos.gid %FOLDER%
12+ xcopy /s/e/y/q kratos.gid %FOLDER% \kratos.gid\
13+ copy LICENSE.md %FOLDER% \kratos.gid\LICENSE.md
14+ copy README.md %FOLDER% \kratos.gid\README.md
15+
16+ set RELEASE_FILE = kratos-%VERSION% -win-64.zip
17+ del /f /q %RELEASE_FILE% 2 > null
18+ powershell.exe -noprofile -command " Compress-Archive -Path '%FOLDER% \*' -DestinationPath %RELEASE_FILE% "
19+ del /f /q .\dist\%RELEASE_FILE% 2 > null
20+ move %RELEASE_FILE% .\dist\%RELEASE_FILE%
21+ echo " Version created -> kratos-%VERSION% -win-64"
22+
You can’t perform that action at this time.
0 commit comments