mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-08-03 03:56:08 -04:00
Add powershell version of release-tool
This commit is contained in:
parent
064d621846
commit
3c824cb500
4 changed files with 546 additions and 11 deletions
11
release-tool
11
release-tool
|
@ -1014,17 +1014,6 @@ build() {
|
|||
# release.
|
||||
cpack -G "${CPACK_GENERATORS};${build_generators}"
|
||||
|
||||
# Inject the portable config into the zip build and rename
|
||||
touch .portable
|
||||
for filename in ${APP_NAME}-*.zip; do
|
||||
logInfo "Creating portable zip file"
|
||||
local folder=$(echo ${filename} | sed -r 's/(.*)\.zip/\1/')
|
||||
python -c 'import zipfile,sys ; zipfile.ZipFile(sys.argv[1],"a").write(sys.argv[2],sys.argv[3])' \
|
||||
${filename} .portable ${folder}/.portable
|
||||
mv ${filename} ${folder}-portable.zip
|
||||
done
|
||||
rm .portable
|
||||
|
||||
mv "${APP_NAME}-"*.* ../
|
||||
else
|
||||
mkdir -p "${OUTPUT_DIR}/KeePassXC.AppDir"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue