Skip to content

Commit

Permalink
Add powershell version of release-tool
Browse files Browse the repository at this point in the history
  • Loading branch information
droidmonkey committed Jan 31, 2022
1 parent 064d621 commit 3c824cb
Show file tree
Hide file tree
Showing 4 changed files with 546 additions and 11 deletions.
3 changes: 3 additions & 0 deletions cmake/MakePortableZip.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
if (CMAKE_INSTALL_PREFIX MATCHES "/ZIP/")
file(TOUCH "${CMAKE_INSTALL_PREFIX}/.portable")
endif()
11 changes: 0 additions & 11 deletions release-tool
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Loading

0 comments on commit 3c824cb

Please sign in to comment.