Skip to content

Commit baf94ab

Browse files
authored
Merge pull request #24 from iPlug2/codex/markdown-installers-manual
Use Markdown for installer and manual docs
2 parents ce21a49 + 7ad8947 commit baf94ab

24 files changed

Lines changed: 314 additions & 170 deletions

.github/workflows/build-mac.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,24 @@ jobs:
9191
cd iPlug2/Dependencies/IPlug
9292
./download-clap-sdks.sh ${{env.CLAP_VER}}
9393
94+
- name: Install pandoc
95+
uses: pandoc/actions/setup@v1
96+
97+
- name: Install typst
98+
uses: typst-community/setup-typst@v5
99+
100+
- name: Validate installer docs
101+
shell: bash
102+
run: |
103+
set -eo pipefail
104+
cd ${{matrix.project}}
105+
python3 scripts/prepare_installer_docs.py mac
106+
test -f build-mac/installer/resources/license.rtf
107+
test -f build-mac/installer/resources/readme-mac.rtf
108+
test -f build-mac/installer/resources/intro.rtf
109+
test -f "build-mac/manual/${{matrix.project}} manual.pdf"
110+
test -f "manual/${{matrix.project}} manual.md"
111+
94112
- name: Build
95113
shell: bash
96114
run: |

.github/workflows/build-win.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,25 @@ jobs:
8080
cd iPlug2/Dependencies/IPlug
8181
./download-clap-sdks.sh ${{env.CLAP_VER}}
8282
83+
- name: Install pandoc
84+
uses: pandoc/actions/setup@v1
85+
86+
- name: Install typst
87+
uses: typst-community/setup-typst@v5
88+
89+
- name: Validate installer docs
90+
shell: pwsh
91+
run: |
92+
$ErrorActionPreference = 'Stop'
93+
$PSNativeCommandUseErrorActionPreference = $true
94+
cd ${{matrix.project}}
95+
python scripts/prepare_installer_docs.py win
96+
if (!(Test-Path "build-win\installer-docs\license.txt")) { throw "Missing generated license.txt" }
97+
if (!(Test-Path "build-win\installer-docs\readme-win.txt")) { throw "Missing generated readme-win.txt" }
98+
if (!(Test-Path "build-win\installer-docs\readme-win-demo.txt")) { throw "Missing generated readme-win-demo.txt" }
99+
if (!(Test-Path "build-win\manual\${{matrix.project}} manual.pdf")) { throw "Missing generated manual PDF" }
100+
if (!(Test-Path "manual\${{matrix.project}} manual.md")) { throw "Missing Markdown manual" }
101+
83102
- name: Add msbuild to PATH
84103
uses: microsoft/setup-msbuild@v2
85104

.github/workflows/release-native.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,12 @@ jobs:
5151
with:
5252
submodules: recursive
5353

54+
- name: Install pandoc
55+
uses: pandoc/actions/setup@v1
56+
57+
- name: Install typst
58+
uses: typst-community/setup-typst@v5
59+
5460
- name: Get VST3 SDK
5561
run: |
5662
cd iPlug2/Dependencies/IPlug
@@ -68,7 +74,7 @@ jobs:
6874
if: matrix.os == 'macOS-latest'
6975
run: |
7076
ARCHIVE_NAME=`python3 iPlug2/Scripts/get_archive_name.py ${{env.PROJECT_NAME}} mac full`
71-
echo "name=archive_name::$ARCHIVE_NAME" >> $GITHUB_OUTPUT
77+
echo "archive_name=$ARCHIVE_NAME" >> $GITHUB_OUTPUT
7278
shell: bash
7379

7480
- name: Build macOS
@@ -116,7 +122,7 @@ jobs:
116122
if: matrix.os == 'windows-latest'
117123
run: |
118124
ARCHIVE_NAME=`python.exe iPlug2/Scripts/get_archive_name.py ${{env.PROJECT_NAME}} win full`
119-
echo "name=archive_name::$ARCHIVE_NAME" >> $GITHUB_OUTPUT
125+
echo "archive_name=$ARCHIVE_NAME" >> $GITHUB_OUTPUT
120126
shell: bash
121127

122128
- name: Build Windows

TemplateProject/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
# TemplateProject readme
22

33
iPlug2 template project
4+
5+
## Distribution docs
6+
7+
Installer text lives in `installer/*.md` and the user manual lives in `manual/TemplateProject manual.md`. The packaging scripts use Pandoc to generate installer-compatible RTF/TXT files and a PDF manual from those Markdown sources during release builds.

TemplateProject/installer/TemplateProject.iss

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ SolidCompression=yes
1414
OutputDir=.\..\build-win\installer
1515
ArchitecturesInstallIn64BitMode=x64
1616
OutputBaseFilename=TemplateProject Installer
17-
LicenseFile=license.rtf
17+
LicenseFile=..\build-win\installer-docs\license.txt
1818
SetupLogging=yes
1919
ShowComponentSizes=no
2020
; WizardImageFile=installer_bg-win.bmp
@@ -63,7 +63,7 @@ Source: "..\build-win\TemplateProject.vst3\*.*"; Excludes: "\Contents\x86\*,*.pd
6363
Source: "..\build-win\TemplateProject.vst3\Desktop.ini"; DestDir: "{cf64}\VST3\TemplateProject.vst3\"; Check: Is64BitInstallMode; Components:vst3_64; Flags: overwritereadonly ignoreversion; Attribs: hidden system;
6464
Source: "..\build-win\TemplateProject.vst3\PlugIn.ico"; DestDir: "{cf64}\VST3\TemplateProject.vst3\"; Check: Is64BitInstallMode; Components:vst3_64; Flags: overwritereadonly ignoreversion; Attribs: hidden system;
6565

66-
Source: "..\build-win\TemplateProject.clap"; DestDir: {commoncf64}\CLAP\; Check: Is64BitInstallMode; Components:clap_64; Flags: ignoreversion;
66+
Source: "..\build-win\TemplateProject_x64.clap"; DestDir: {commoncf64}\CLAP\; Check: Is64BitInstallMode; Components:clap_64; Flags: ignoreversion;
6767

6868
;Source: "..\build-win\aax\bin\TemplateProject.aaxplugin\*.*"; Excludes: "\Contents\x64\*,*.pdb,*.exp,*.lib,*.ilk,*.ico,*.ini"; DestDir: "{cf32}\Avid\Audio\Plug-Ins\TemplateProject.aaxplugin\"; Components:aax_32; Flags: ignoreversion recursesubdirs;
6969
;Source: "..\build-win\aax\bin\TemplateProject.aaxplugin\Desktop.ini"; DestDir: "{cf32}\Avid\Audio\Plug-Ins\TemplateProject.aaxplugin\"; Components:aax_32; Flags: overwritereadonly ignoreversion; Attribs: hidden system;
@@ -73,15 +73,15 @@ Source: "..\build-win\TemplateProject.clap"; DestDir: {commoncf64}\CLAP\; Check:
7373
;Source: "..\build-win\TemplateProject.aaxplugin\Desktop.ini"; DestDir: "{cf64}\Avid\Audio\Plug-Ins\TemplateProject.aaxplugin\"; Check: Is64BitInstallMode; Components:aax_64; Flags: overwritereadonly ignoreversion; Attribs: hidden system;
7474
;Source: "..\build-win\TemplateProject.aaxplugin\PlugIn.ico"; DestDir: "{cf64}\Avid\Audio\Plug-Ins\TemplateProject.aaxplugin\"; Check: Is64BitInstallMode; Components:aax_64; Flags: overwritereadonly ignoreversion; Attribs: hidden system;
7575

76-
Source: "..\manual\TemplateProject manual.pdf"; DestDir: "{app}"
76+
Source: "..\build-win\manual\TemplateProject manual.pdf"; DestDir: "{app}"
7777
Source: "changelog.txt"; DestDir: "{app}"
78-
Source: "readme-win.rtf"; DestDir: "{app}"; DestName: "readme.rtf"; Flags: isreadme
78+
Source: "..\build-win\installer-docs\readme-win.txt"; DestDir: "{app}"; DestName: "readme.txt"; Flags: isreadme
7979

8080
[Icons]
8181
Name: "{group}\TemplateProject"; Filename: "{app}\TemplateProject_x64.exe"
8282
Name: "{group}\User guide"; Filename: "{app}\TemplateProject manual.pdf"
8383
Name: "{group}\Changelog"; Filename: "{app}\changelog.txt"
84-
;Name: "{group}\readme"; Filename: "{app}\readme.rtf"
84+
;Name: "{group}\readme"; Filename: "{app}\readme.txt"
8585
Name: "{group}\Uninstall TemplateProject"; Filename: "{app}\unins000.exe"
8686

8787
[Code]
@@ -142,4 +142,4 @@ begin
142142
end;
143143
144144
[UninstallDelete]
145-
Type: files; Name: "{app}\InstallationLogFile.log"
145+
Type: files; Name: "{app}\InstallationLogFile.log"

TemplateProject/installer/intro.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# TemplateProject
2+
3+
Thanks for purchasing TemplateProject.
4+
5+
support@acmeinc.com
6+
7+
http://www.acmeinc.com

TemplateProject/installer/intro.rtf

Lines changed: 0 additions & 13 deletions
This file was deleted.
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# TemplateProject License
2+
3+
**THIS IS A PLACEHOLDER LICENCE PROVIDED WITH IPLUG2**
4+
5+
**IT HAS NO LEGAL BASIS**
6+
7+
**YOU MAY WISH TO CONSULT A LAWYER BEFORE MAKING A LICENCE**
8+
9+
## Caveat
10+
11+
By installing this software you agree to use it at your own risk. The developer cannot be held responsible for any damages caused as a result of its use.
12+
13+
## Distribution
14+
15+
You are not permitted to distribute the software without the developer's permission. This includes, but is not limited to, distribution on magazine covers or software review websites.
16+
17+
## Multiple Installations*
18+
19+
If you purchased this product as an individual, you are licensed to install and use the software on any computer you need to use it on, providing you remove it afterwards if it is a shared machine. If you purchased it as an institution or company, you are licensed to use it on one machine only, and must purchase additional copies for each machine you wish to use it on.
20+
21+
## Upgrades*
22+
23+
If you purchased this product you are entitled to free updates until the next major version number. The developer makes no guarantee that this product will be maintained indefinitely.
24+
25+
## License transfers*
26+
27+
If you purchased this product you may transfer your license to another person. As the original owner you are required to contact the developer with the details of the license transfer, so that the new owner can receive the updates and support attached to the license. Upon transferring a license the original owner must remove any copies from their machines and are no longer permitted to use the software.
28+
29+
TemplateProject is (C) Copyright AcmeInc 2019
30+
31+
http://www.acmeinc.com
32+
33+
VST and VST3 are trademarks of Steinberg Media Technologies GmbH.
34+
Audio Unit is a trademark of Apple, Inc.
35+
AAX is a trademark of Avid, Inc.
36+
37+
Applies to full version only, not the demo version.

TemplateProject/installer/license.rtf

Lines changed: 0 additions & 45 deletions
This file was deleted.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# TemplateProject
2+
3+
The plugins will be installed in your system plugin folders, which will make them available to all user accounts on your computer. The standalone will be installed in the system Applications folder.
4+
5+
If you do not want to install all components, click **Customize** on the **Installation Type** page.
6+
7+
If you experience any problems with TemplateProject, please contact us at:
8+
9+
support@acmeinc.com

0 commit comments

Comments
 (0)