docs: scaffolding page structure

This commit is contained in:
Caelan Sayler
2024-01-26 20:00:01 +00:00
parent d8baed8ee7
commit c1a360ce83
23 changed files with 69 additions and 102 deletions

View File

@@ -2,35 +2,4 @@
_layout: landing
---
# Velopack Documentation
🚧🚧This documentation is still under construction.🚧🚧
## FAQ
- **My application was detected as a virus?** <br/>
Velopack can't help with this, but you can [code-sign](signing.md) your app and check [other suggestions here](https://github.com/clowd/Clowd.Squirrel/issues/28#issuecomment-1016241760).
- **What happened to SquirrelAwareApp? / Shortcuts** <br/>
This concept no longer exists in Velopack. You can create hooks on install/update in a similar way using the `VelopackApp` builder. Although note that creating shortcuts or registry entries yourself during hooks is no longer required.
- **Can Velopack bootstrap new runtimes during updates?** <br/>
Yes, this is fully supported. Before installing updates, Velopack will prompt the user to install any missing updates.
## Using Velopack
- [Migrating to Velopack](migrating.md)
- [Logging & Debugging](debugging.md)
- [Command Line Reference](cli.md)
- Packaging Releases
- Overview
- Release Channels
- Installer Overview & Customisation
- [Code Signing](signing.md)
- [Boostrapping frameworks (.NET, .Net Framework, VCRedist, etc)](bootstrapping.md)
- Specify app RID / supported OS versions / supported architecture
- Distributing Releases
- Overview
- CI / CD Tips & Examples
- Deploying to GitHub Releases
- Deploying to Amazon S3 Storage (or compatible, eg. B2, Linode)
- Updating
- Overview
- Rolling back to a previous release
- [Windows Shortcuts](shortcuts.md)
- Customising updates (AfterInstall, BeforeUninstall, BeforeUpdate, AfterUpdate hooks)
# WIP

View File

@@ -1,9 +1,6 @@
| [docs](.) / compiling.md |
|:---|
# Compiling Velopack
*Applies to: Windows, MacOS, Linux*
# Compiling Velopack
Velopack is made up of some Rust binaries which are re-distributed with installed apps, a .NET NuGet package, and a .NET command line tool. In order to test the project, you need to build the Rust binaries before compiling dotnet.
### Prerequisites

View File

View File

@@ -0,0 +1,2 @@
- name: Overview
href: overview.md

View File

@@ -1,5 +0,0 @@
# Velopack Examples
- [**AvaloniaCrossPlat**](AvaloniaCrossPlat) - uses Avalonia to provide a desktop UI, installer, and updates for Mac, Linux, and Windows.
- [**VeloWpfSample**](VeloWpfSample) - demonstrates how to use Velopack effectively with WPF.

View File

@@ -1,4 +1,2 @@
- name: C# / .NET
href: csharp.md
- name: Sample Apps
href: samples.md
href: csharp.md

View File

@@ -1,8 +1,6 @@
| [docs](.) / migrating.md |
|:---|
*Applies to: Windows*
# Migrating to Velopack
*Applies to: Windows*
## Squirrel.Windows and Clowd.Squirrel
If you are using one of these packages in your application, migrating will be mostly automated. Here are the general steps needed:
@@ -14,7 +12,7 @@ If you are using one of these packages in your application, migrating will be mo
dotnet tool install -g vpk
```
0. You will need to replace `SquirrelAwareApp` at the beginning of your app to `VelopackApp.Build().Run()`. Shortcuts [[Read more]](shortcuts.md) and registry entries are managed automatically for you in Velopack, so if you are currently doing this in `SquirrelAwareApp` hooks they should be removed. For example, if your hooks were this before:
0. You will need to replace `SquirrelAwareApp` at the beginning of your app to `VelopackApp.Build().Run()`. Shortcuts [[Read more]](updating/shortcuts.md) and registry entries are managed automatically for you in Velopack, so if you are currently doing this in `SquirrelAwareApp` hooks they should be removed. For example, if your hooks were this before:
```cs
public static void Main(string[] args)
{

View File

@@ -1,9 +1,6 @@
| [docs](.) / bootstrapping.md |
|:---|
# Bootstrapping
*Applies to: Windows*
# Bootstrapping
While installing Velopack applications on Windows, it is possible to install other commonly required runtime dependencies using the `--framework` / `-f` argument.
It is possibly to specify more than one requirement, using a comma delimited list. For example:

View File

@@ -1,9 +1,6 @@
| [docs](.) / channels.md |
|:---|
# Release Channels
*Applies to: Windows, MacOS, Linux*
# Release Channels
Channels is a fundemental part of how Velopack understands and builds releases. Every release must belong to a channel. If you do not specify a channel when building a release (via the `--channel`) argument, the default channel will be the name of the target Operating System (eg. `win`, `osx`, or `linux`).
When building releases, Velopack will create a `releases.{channel}.json` file, that should be uploaded with your other assets (eg. `.nupkg`). This is how `UpdateManager` knows what releases are available.

View File

@@ -1 +0,0 @@
Hello! test

View File

@@ -0,0 +1,2 @@
*Applies to: Windows, MacOS*
# Customising Installers

View File

View File

View File

@@ -1,9 +1,6 @@
| [docs](.) / signing.md |
|:---|
# Code Signing
*Applies to: Windows, MacOS*
# Code Signing
Code signing is an essential part of application distribution. On Windows, applications without code signatures are likely to be flagged as viruses. On OSX, codesigning and Notarization is required before your application can be run by users.
On both platforms, signing needs to be performed by Velopack itself, this is because the Velopack binaries (such as Update and Setup) need to be signed at different points in the package build process.
@@ -47,7 +44,7 @@ Codesigning and Notarization is required before your application can be run by u
### Creating code signing certificates
1. First, you will need to create an account at https://developer.apple.com, pay the annual developer fee, and accept any license agreements.
0. Navigate to your certificates: https://developer.apple.com/account/resources/certificates
0. Click the (+) icon to create new certificates. You need to create both a `Developer ID Installer` and a `Developer ID Application` certificate for distribution of Velopack apps outside the Mac App Store. ![apple certificate list](artwork/apple_certificate_list.png)
0. Click the (+) icon to create new certificates. You need to create both a `Developer ID Installer` and a `Developer ID Application` certificate for distribution of Velopack apps outside the Mac App Store. ![apple certificate list](~/artwork/apple_certificate_list.png)
0. Open both certificates by clicking on them, press Download, and then double click the ".cer" file to install it to your local keychain.
### Setting up a NotaryTool profile

View File

@@ -1,4 +1,12 @@
- name: Overview
href: overview.md
- name: Release Channels
href: channels.md
- name: Code Signing
href: signing.md
- name: Customising Installers
href: installer.md
- name: Boostrapping frameworks (.NET, .Net Framework, VCRedist, etc)
href: bootstrapping.md
href: bootstrapping.md
- name: RID / Minimum Supported OS
href: rid.md

View File

@@ -1,35 +1,31 @@
- name: Welcome
href: welcome.md
- name: Getting Started
href: getting-started/toc.yml
- name: Migrating to Velopack
href: migrating.md
- name: Logging / Debugging
href: debugging.md
- name: Command Line Reference
href: cli.md
- name: Sample Apps
items:
- name: Avalonia / Cross Platform
href: https://github.com/velopack/velopack/tree/master/examples/AvaloniaCrossPlat
- name: WPF Windows
href: https://github.com/velopack/velopack/tree/master/examples/VeloWpfSample
- name: Packaging Releases
href: packaging/toc.yml
homepage: packaging/index.md
- name: Distributing Releases
href: distributing/toc.yml
- name: Updating
href: updating/toc.yml
- name: Troubleshooting
href: troubleshooting/toc.yml
- name: Migrating to Velopack
href: migrating.md
- name: Contributing
href: compiling.md
# ## Using Velopack
# - [Migrating to Velopack](migrating.md)
# - [Logging & Debugging](debugging.md)
# - [Command Line Reference](cli.md)
# - Packaging Releases
# - Overview
# - Release Channels
# - Installer Overview & Customisation
# - [Code Signing](signing.md)
# - [Boostrapping frameworks (.NET, .Net Framework, VCRedist, etc)](bootstrapping.md)
# - Specify app RID / supported OS versions / supported architecture
# - Distributing Releases
# - Overview
# - CI / CD Tips & Examples
# - Deploying to GitHub Releases
# - Deploying to Amazon S3 Storage (or compatible, eg. B2, Linode)
# - Updating
# - Overview
# - Rolling back to a previous release
# - [Windows Shortcuts](shortcuts.md)
# - Customising updates (AfterInstall, BeforeUninstall, BeforeUpdate, AfterUpdate hooks)

View File

@@ -1,8 +1,6 @@
| [docs](.) / cli.md |
|:---|
*Applies to: Windows, MacOS, Linux*
# Velopack Command Line Reference
*Applies to: Windows, MacOS, Linux*
## vpk
```txt

View File

@@ -1,8 +1,6 @@
| [docs](.) / debugging.md |
|:---|
*Applies to: Windows, MacOS, Linux*
# Debugging Velopack
*Applies to: Windows, MacOS, Linux*
## Logging
All parts of Velopack have logging built in to help troubleshoot issues, and you should provide these logs when opening a GitHub issue about a potential bug.
@@ -36,7 +34,7 @@ Running Update.exe will log most output to it's base directory as `Velopack.log`
All logs will be sent to `/tmp/velopack.log`.
## Advanced Debugging
The debug builds of Velopack binaries have additional logging/debugging capabilities, and will produce console output. In some instances, it may be useful to [compile Velopack](compiling.md) for your platform, and replace the release binaries of Setup.exe and Update.exe with debug versions.
The debug builds of Velopack binaries have additional logging/debugging capabilities, and will produce console output. In some instances, it may be useful to [compile Velopack](../compiling.md) for your platform, and replace the release binaries of Setup.exe and Update.exe with debug versions.
If your issue is with package building, after building the rust binaries in Debug mode, it can also be useful to run the Velopack.Vpk project from Visual Studio with your intended command line arguments rather than running the `vpk` tool directly.

View File

@@ -0,0 +1,4 @@
- name: Command Line Reference
href: cli.md
- name: Debugging / Logging
href: debugging.md

View File

View File

@@ -1,9 +1,6 @@
| [docs](.) / shortcuts.md |
|:---|
# Windows Shortcuts
*Applies to: Windows*
# Windows Shortcuts
By default, during installation Velopack will create a shortcut on the Desktop and in the StartMenuRoot. It will automatically delete any shortcuts it finds when uninstalling the application.
The name of the shortcuts will be determined by the `--packTitle` vpk argument. For example, if you pass `--packTitle "My Fancy App"`, then the shortcuts created will be created as `"My Fancy App.lnk"`.

View File

@@ -0,0 +1,4 @@
- name: Overview
href: overview.md
- name: Windows Shortcuts
href: shortcuts.md

11
docs/pages/welcome.md Normal file
View File

@@ -0,0 +1,11 @@
# Velopack Documentation
🚧🚧This documentation is still under construction.🚧🚧
## FAQ
- **My application was detected as a virus?** <br/>
Velopack can't help with this, but you can [code-sign](packaging/signing.md) your app and check [other suggestions here](https://github.com/clowd/Clowd.Squirrel/issues/28#issuecomment-1016241760).
- **What happened to SquirrelAwareApp? / Shortcuts** <br/>
This concept no longer exists in Velopack. You can create hooks on install/update in a similar way using the `VelopackApp` builder. Although note that creating shortcuts or registry entries yourself during hooks is no longer required.
- **Can Velopack bootstrap new runtimes during updates?** <br/>
Yes, this is fully supported. Before installing updates, Velopack will prompt the user to install any missing updates.