Repository navigation
Expand file tree
/
Copy pathrelease.sh
More file actions
59 lines (48 loc) · 2.38 KB
/
Copy pathrelease.sh
File metadata and controls
59 lines (48 loc) · 2.38 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
# release.sh – GitHub Release erstellen und Setup-EXE hochladen
# Voraussetzungen: git, gh (GitHub CLI), authentifiziert via `gh auth login`
set -euo pipefail
VERSION="1.1.0"
TAG="v${VERSION}"
SETUP_EXE="OneNoteBackupExporter_Setup_${VERSION}.exe"
REPO="vikingjunior12/OneNoteBackupExporter"
# ── Prüfungen ────────────────────────────────────────────────────────────────
if ! command -v gh &>/dev/null; then
echo "FEHLER: 'gh' (GitHub CLI) ist nicht installiert."
echo " -> pacman -S github-cli"
exit 1
fi
if [[ ! -f "$SETUP_EXE" ]]; then
echo "FEHLER: Setup-Datei nicht gefunden: $SETUP_EXE"
echo " -> Erst build.ps1 + Inno Setup ausführen"
exit 1
fi
# ── Tag erstellen (falls noch nicht vorhanden) ────────────────────────────────
if git rev-parse "$TAG" &>/dev/null; then
echo ">> Tag $TAG existiert bereits, wird übersprungen."
else
echo ">> Erstelle Tag $TAG ..."
git tag -a "$TAG" -m "Release $TAG"
git push origin "$TAG"
fi
# ── GitHub Release erstellen + EXE hochladen ─────────────────────────────────
echo ">> Erstelle GitHub Release $TAG ..."
gh release create "$TAG" "$SETUP_EXE" \
--repo "$REPO" \
--title "OneNoteBackupExporter $TAG" \
--notes "## OneNoteBackupExporter $TAG
### New Features
- **Section export**: Notebooks can now be expanded to show individual sections — select and export only the sections you need
- Sections from nested section groups are fully supported (shown as \`📂 Group / 📄 Section\`)
- Encrypted and recycle-bin sections are automatically skipped
- Mixed export: combine whole-notebook exports and section-level exports in a single run
- Sections are saved into a notebook-named subfolder to keep the output organised (e.g. \`MyNotebook/Section1.onepkg\`)
- Export button text dynamically reflects the selection (e.g. \`Export 1 notebook(s) + 3 section(s)\`)
### Installation
1. Download \`$SETUP_EXE\`
2. Run the installer
3. OneNote Desktop must be installed and opened at least once
### System Requirements
- Windows 10/11 x64
- Microsoft OneNote Desktop (Microsoft 365 or 2019/2021)"
echo ""
echo "Release erfolgreich: https://github.com/${REPO}/releases/tag/${TAG}"