-
Notifications
You must be signed in to change notification settings - Fork 462
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Windows: Improve packaging automation
Adds a script to download binaries for the specific app version and to view screenshots. Adds more screenshots and uploads them as a single zip file.
- Loading branch information
Showing
7 changed files
with
140 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/bash | ||
set -exuo pipefail | ||
|
||
# shellcheck disable=SC1091 | ||
source utils/appveyor/env.sh | ||
|
||
export PATH="$GPGPATH":$Destination:$PATH | ||
mkdir ~/.gnupg | ||
chmod go-rwx ~/.gnupg | ||
gpg --version | ||
|
||
"$Executable" tests | ||
|
||
gpgconf --kill all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
#!/usr/bin/bash | ||
set -exuo pipefail | ||
|
||
# shellcheck disable=SC1091 | ||
source utils/appveyor/env.sh | ||
|
||
export PATH=$Destination:$PATH | ||
|
||
export QT_FORCE_STDERR_LOGGING=1 | ||
|
||
"$Executable" & | ||
copyq_pid=$! | ||
"$Executable" showAt 0 0 9999 9999 | ||
|
||
"$Executable" add "Plain text item" | ||
"$Executable" add "Unicode: " | ||
"$Executable" 'write(mimeText, "Highlighted item", mimeColor, "#ff0")' | ||
"$Executable" 'write(mimeText, "Item with notes", mimeItemNotes, "Notes...")' | ||
"$Executable" 'write(mimeText, "Item with tags", plugins.itemtags.mimeTags, "important")' | ||
"$Executable" write text/html "<p><b>Rich text</b> <i>item</i></p>" | ||
"$Executable" write image/png - < "$Source/src/images/icon_128x128.png" | ||
|
||
# FIXME: Native notifications do not show up. | ||
# Maybe a user interaction, like mouse move, is required. | ||
"$Executable" config native_notifications "false" | ||
"$Executable" popup "Popup title" "Popup message..." | ||
"$Executable" notification \ | ||
.title "Notification title" \ | ||
.message "Notification message..." \ | ||
.button OK cmd data \ | ||
.button Close cmd data | ||
|
||
"$Executable" sleep 1000 | ||
|
||
export PATH=$Destination:$OldPath | ||
|
||
screenshot_count=0 | ||
mkdir -p copyq-screenshots | ||
|
||
screenshot() { | ||
screenshot_count=$((screenshot_count + 1)) | ||
file=$(printf "copyq-screenshots/%02d - %s.png" "$screenshot_count" "$1") | ||
"$Executable" screenshot > "$file" | ||
} | ||
|
||
screenshot "App" | ||
|
||
"$Executable" keys "Ctrl+P" "focus:ConfigurationManager" | ||
for n in $(seq 9); do | ||
screenshot "Configuration Tab $n" | ||
"$Executable" keys "DOWN" "focus:ConfigurationManager" | ||
done | ||
"$Executable" keys "ESCAPE" "focus:ClipboardBrowser" | ||
|
||
"$Executable" keys "Shift+F1" "focus:AboutDialog" | ||
screenshot "About Dialog" | ||
"$Executable" keys "ESCAPE" "focus:ClipboardBrowser" | ||
|
||
"$Executable" keys "Alt+T" "focus:Menu" | ||
screenshot "Tab Menu" | ||
"$Executable" keys "ESCAPE" "focus:ClipboardBrowser" | ||
|
||
"$Executable" keys "Ctrl+N" "focus:ItemEditorWidget" | ||
"$Executable" keys ":Testing 1 2 3" "focus:ItemEditorWidget" | ||
screenshot "Editor" | ||
"$Executable" keys "F2" "focus:ClipboardBrowser" | ||
|
||
"$Executable" keys "Ctrl+N" "focus:ItemEditorWidget" \ | ||
":New Item" "F2" "focus:ClipboardBrowser" | ||
"$Executable" keys "F2" "focus:ItemEditorWidget" \ | ||
"END" "ENTER" ":with Notes" "F2" "focus:ClipboardBrowser" | ||
"$Executable" keys "Shift+F2" "focus:ItemEditorWidget" \ | ||
":Some Notes" "F2" "focus:ClipboardBrowser" | ||
screenshot "Items" | ||
|
||
7z a "copyq-screenshots.zip" -r "copyq-screenshots" | ||
appveyor PushArtifact "copyq-screenshots.zip" -DeploymentName "CopyQ Screenshots" | ||
|
||
"$Executable" exit | ||
wait "$copyq_pid" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
version=$1 | ||
base=https://ci.appveyor.com/api/projects/hluk/copyq/artifacts | ||
urls=( | ||
"$base/copyq-$version.zip?tag=v$version" | ||
"$base/copyq-$version-setup.exe?tag=v$version" | ||
) | ||
for url in "${urls[@]}"; do | ||
echo "Downloading: $url" | ||
curl -LO --fail-with-body "$url" | ||
done | ||
echo "DONE" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
|
||
image_viewer=${IMAGE_VIEWER:-eog} | ||
url="https://ci.appveyor.com/api/projects/hluk/copyq/artifacts/copyq-screenshots.zip?$*" | ||
|
||
if [[ $# == 0 ]]; then | ||
echo "Usage: $0 {tag=v8.0.0|branch=master}" | ||
exit 1 | ||
fi | ||
|
||
dir=$(mktemp --directory) | ||
clean() { | ||
rm -rf -- "$dir" | ||
} | ||
trap clean QUIT TERM INT HUP EXIT | ||
|
||
curl -L --fail-with-body --output "$dir/copyq-screenshots.zip" "$url" | ||
7z e -o"$dir" "$dir/copyq-screenshots.zip" | ||
"$image_viewer" "$dir" |