-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·67 lines (56 loc) · 2.15 KB
/
Copy pathbuild.sh
File metadata and controls
executable file
·67 lines (56 loc) · 2.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/bin/bash
# =============================================================================
# Build script for Atlas.ti NVDA Add-on
# Version: 1.1.0
# =============================================================================
#
# Author: Christos Bouronikos
# Email: chrisbouronikos@gmail.com
# Donations: https://paypal.me/christosbouronikos
#
# Copyright (C) 2026 Christos Bouronikos
# =============================================================================
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "$SCRIPT_DIR"
ADDON_NAME="$(awk -F= '/^[[:space:]]*name[[:space:]]*=/ {print $2; exit}' addon/manifest.ini | xargs | sed 's/^\"//; s/\"$//')"
VERSION="$(awk -F= '/^[[:space:]]*version[[:space:]]*=/ {print $2; exit}' addon/manifest.ini | xargs | sed 's/^\"//; s/\"$//')"
if [[ -z "${ADDON_NAME}" || -z "${VERSION}" ]]; then
echo "Error: name/version missing from addon/manifest.ini" >&2
exit 1
fi
OUTPUT_FILE="${ADDON_NAME}-${VERSION}.nvda-addon"
echo "Building Atlas.ti Accessibility NVDA Add-on..."
echo "================================================"
echo "Author: Christos Bouronikos"
echo "Version: ${VERSION}"
echo ""
# Remove old build if exists
rm -f "$OUTPUT_FILE"
echo "Creating add-on package: $OUTPUT_FILE"
# Copy latest documentation to doc folders
echo "Updating documentation..."
mkdir -p addon/doc/en addon/doc/el
cp readme.md addon/doc/en/readme.md
cp readme.md addon/doc/el/readme.md
cp changelog.md addon/doc/en/changelog.md
cp changelog.md addon/doc/el/changelog.md
# Create the .nvda-addon file (it's just a zip with a different extension)
(cd addon && zip -r "../$OUTPUT_FILE" \
. \
-x "*.pyc" \
-x "*__pycache__*" \
-x "*.DS_Store" \
-x "*.git*" \
-x "*.po")
echo ""
echo "Build complete!"
echo "================================================"
echo "Output: $(pwd)/$OUTPUT_FILE"
echo ""
echo "To install:"
echo "1. Copy $OUTPUT_FILE to your Windows machine"
echo "2. Double-click the file to install with NVDA"
echo " OR use NVDA Menu -> Tools -> Add-on Store -> Install from external source"
echo ""
echo "If this addon helped you, please donate: https://paypal.me/christosbouronikos"