From 1958a5f29685170ea790f754d6d0b60f00eb7597 Mon Sep 17 00:00:00 2001 From: Snowsune Date: Sun, 23 Mar 2025 12:09:10 -0400 Subject: [PATCH 1/2] Fix download component giving wrong urls for latest builds replaced a "-" with a "." and fixed aarch for linux and windows --- src/componets/downloadBtn.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/componets/downloadBtn.vue b/src/componets/downloadBtn.vue index 33b4624..ab07191 100644 --- a/src/componets/downloadBtn.vue +++ b/src/componets/downloadBtn.vue @@ -78,13 +78,15 @@ onMounted(async () => { arch = "x64"; } } else { - arch = "x64"; + // Linux or Windows if (/(arm64|aarch64)/i.test(userAgent)) { arch = "arm64"; + } else { + arch = "x86_64"; } } - downloadUrl.value = `https://github.com/Fchat-Horizon/Horizon/releases/latest/download/F-Chat-Horizon-${osDetails.value.platform}-${arch}.${fileExtension}`; + downloadUrl.value = `https://github.com/Fchat-Horizon/Horizon/releases/latest/download/F-Chat.Horizon-${osDetails.value.platform}-${arch}.${fileExtension}`; }); From 7a35475da64101d28638a0a78c0cb548520a145e Mon Sep 17 00:00:00 2001 From: Snowsune Date: Sun, 23 Mar 2025 12:09:23 -0400 Subject: [PATCH 2/2] Add some extra notes on editing the docs under contribuiting --- src/docs/contributing.md | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/src/docs/contributing.md b/src/docs/contributing.md index 47d194f..88c2e31 100644 --- a/src/docs/contributing.md +++ b/src/docs/contributing.md @@ -11,12 +11,13 @@ That being said, *Horizon is an opinionated fork*, and as such we enforce strong - [Contributing to Horizon](#contributing-to-horizon) - [Where do I start?!](#where-do-i-start) - [Technology](#technology) - - [Setting up your development enviroment](#setting-up-your-development-enviroment) + - [Setting up your development environment](#setting-up-your-development-environment) - [Building](#building) - [Electron](#electron) - [Mobile](#mobile) - [Project layout](#project-layout) - [Branches](#branches) + - [Editing the Documentation](#editing-the-documentation) - [Tags](#tags) ## Where do I start?! @@ -29,7 +30,7 @@ Horizon is written primarily in *Vue*, *Typescript*, and *Javascript.* You'll ne You should use Node.js **v22.13.0**. -### Setting up your development enviroment +### Setting up your development environment In short, you can run the following commands: @@ -61,7 +62,7 @@ node pack.js #### Mobile -Mobile builds are currently unsupported, but if you're up to the challange, *maybe you can fix it?* +Mobile builds are currently unsupported, but if you're up to the challenge, *maybe you can fix it?* Look at the `mobile` directory for more info. For `android`, we recommend you use android studio to make your life more pleasent. @@ -84,6 +85,18 @@ Look at the `mobile` directory for more info. For `android`, we recommend you us - **experimental/\*** (optional) For experimental changes that may not be merged immediately, create branches with the prefix `experimental/`. +### Editing the Documentation + +Our documentation lives in a separate repo `docs` at [Fchat-Horizon/docs](https://github.com/Fchat-Horizon/docs) and uses **[VitePress](https://vitepress.dev/)**. + +To preview the docs locally: + +```sh +cd src +pnpm install +pnpm docs:dev +``` + #### Tags We follow a [semantic versioning](https://semver.org) format: