-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- wails app starter - basic frontend shell - currently just iframes the main installer site, no changes besides that
- Loading branch information
0 parents
commit 84298ea
Showing
32 changed files
with
4,751 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
build/bin |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# WailsInstaller | ||
|
||
Experimetal installer based on Wails and WebInstaller. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// Vencord WailsInstaller, a cross-platform installer for Vencord. | ||
// Copyright (c) 2023 Vendicated, Lewis Crichton, and Vencord contributors | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
package main | ||
|
||
import ( | ||
"context" | ||
"fmt" | ||
) | ||
|
||
// App struct | ||
type App struct { | ||
ctx context.Context | ||
} | ||
|
||
// NewApp creates a new App application struct | ||
func NewApp() *App { | ||
return &App{} | ||
} | ||
|
||
// startup is called when the app starts. The context is saved | ||
// so we can call the runtime methods | ||
func (a *App) startup(ctx context.Context) { | ||
a.ctx = ctx | ||
} | ||
|
||
// Greet returns a greeting for the given name | ||
func (a *App) Greet(name string) string { | ||
return fmt.Sprintf("Hello %s, It's show time!", name) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Build Directory | ||
|
||
The build directory is used to house all the build files and assets for your application. | ||
|
||
The structure is: | ||
|
||
* bin - Output directory | ||
* darwin - macOS specific files | ||
* windows - Windows specific files | ||
|
||
## Mac | ||
|
||
The `darwin` directory holds files specific to Mac builds. | ||
These may be customised and used as part of the build. To return these files to the default state, simply delete them | ||
and | ||
build with `wails build`. | ||
|
||
The directory contains the following files: | ||
|
||
- `Info.plist` - the main plist file used for Mac builds. It is used when building using `wails build`. | ||
- `Info.dev.plist` - same as the main plist file but used when building using `wails dev`. | ||
|
||
## Windows | ||
|
||
The `windows` directory contains the manifest and rc files used when building with `wails build`. | ||
These may be customised for your application. To return these files to the default state, simply delete them and | ||
build with `wails build`. | ||
|
||
- `icon.ico` - The icon used for the application. This is used when building using `wails build`. If you wish to | ||
use a different icon, simply replace this file with your own. If it is missing, a new `icon.ico` file | ||
will be created using the `appicon.png` file in the build directory. | ||
- `info.json` - Application details used for Windows builds. The data here will be used by the Windows installer, | ||
as well as the application itself (right click the exe -> properties -> details) | ||
- `wails.exe.manifest` - The main application manifest file. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>CFBundlePackageType</key> | ||
<string>APPL</string> | ||
<key>CFBundleName</key> | ||
<string>{{.Info.ProductName}}</string> | ||
<key>CFBundleExecutable</key> | ||
<string>{{.Name}}</string> | ||
<key>CFBundleIdentifier</key> | ||
<string>dev.vencord.vencord-installer</string> | ||
<key>CFBundleVersion</key> | ||
<string>{{.Info.ProductVersion}}</string> | ||
<key>CFBundleGetInfoString</key> | ||
<string>{{.Info.Comments}}</string> | ||
<key>CFBundleShortVersionString</key> | ||
<string>{{.Info.ProductVersion}}</string> | ||
<key>CFBundleIconFile</key> | ||
<string>iconfile</string> | ||
<key>LSMinimumSystemVersion</key> | ||
<string>10.13.0</string> | ||
<key>NSHighResolutionCapable</key> | ||
<string>true</string> | ||
<key>NSHumanReadableCopyright</key> | ||
<string>{{.Info.Copyright}}</string> | ||
<key>NSAppTransportSecurity</key> | ||
<dict> | ||
<key>NSAllowsLocalNetworking</key> | ||
<true/> | ||
</dict> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>CFBundlePackageType</key> | ||
<string>APPL</string> | ||
<key>CFBundleName</key> | ||
<string>{{.Info.ProductName}}</string> | ||
<key>CFBundleExecutable</key> | ||
<string>{{.Name}}</string> | ||
<key>CFBundleIdentifier</key> | ||
<string>dev.vencord.vencord-installer</string> | ||
<key>CFBundleVersion</key> | ||
<string>{{.Info.ProductVersion}}</string> | ||
<key>CFBundleGetInfoString</key> | ||
<string>{{.Info.Comments}}</string> | ||
<key>CFBundleShortVersionString</key> | ||
<string>{{.Info.ProductVersion}}</string> | ||
<key>CFBundleIconFile</key> | ||
<string>iconfile</string> | ||
<key>LSMinimumSystemVersion</key> | ||
<string>10.13.0</string> | ||
<key>NSHighResolutionCapable</key> | ||
<string>true</string> | ||
<key>NSHumanReadableCopyright</key> | ||
<string>{{.Info.Copyright}}</string> | ||
</dict> | ||
</plist> |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"fixed": { | ||
"file_version": "{{.Info.ProductVersion}}" | ||
}, | ||
"info": { | ||
"0000": { | ||
"ProductVersion": "{{.Info.ProductVersion}}", | ||
"CompanyName": "{{.Info.CompanyName}}", | ||
"FileDescription": "{{.Info.ProductName}}", | ||
"LegalCopyright": "{{.Info.Copyright}}", | ||
"ProductName": "{{.Info.ProductName}}", | ||
"Comments": "{{.Info.Comments}}" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3"> | ||
<assemblyIdentity type="win32" name="dev.vencord.vencord-installer" version="{{.Info.ProductVersion}}.0" processorArchitecture="*"/> | ||
<dependency> | ||
<dependentAssembly> | ||
<assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="*" publicKeyToken="6595b64144ccf1df" language="*"/> | ||
</dependentAssembly> | ||
</dependency> | ||
<asmv3:application> | ||
<asmv3:windowsSettings> | ||
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true/pm</dpiAware> <!-- fallback for Windows 7 and 8 --> | ||
<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">permonitorv2,permonitor</dpiAwareness> <!-- falls back to per-monitor if per-monitor v2 is not supported --> | ||
</asmv3:windowsSettings> | ||
</asmv3:application> | ||
</assembly> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
{ | ||
"root": true, | ||
"ignorePatterns": ["dist", "node_modules"], | ||
"plugins": [ | ||
"@typescript-eslint", | ||
"simple-header", | ||
"simple-import-sort", | ||
"unused-imports", | ||
"path-alias", | ||
"prettier" | ||
], | ||
"extends": ["plugin:svelte/recommended"], | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"extraFileExtensions": [".svelte"] | ||
}, | ||
"overrides": [ | ||
{ | ||
"files": ["**/*.svelte"], | ||
"parser": "svelte-eslint-parser", | ||
"parserOptions": { | ||
"parser": "@typescript-eslint/parser" | ||
}, | ||
"rules": { | ||
"simple-header/header": [ | ||
"error", | ||
{ | ||
"syntax": ["<!--", "-->"], | ||
"decor": ["\n", " ", "\n"], | ||
"files": ["scripts/header.txt"], | ||
"templates": { "author": [".*", "Vendicated, Justice Almanzar and Vencord contributors"] } | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"settings": { | ||
"import/resolver": { | ||
"alias": { | ||
"map": [] | ||
} | ||
} | ||
}, | ||
"rules": { | ||
"simple-header/header": [ | ||
"error", | ||
{ | ||
"files": ["scripts/header.txt"], | ||
"templates": { "author": [".*", "Vendicated, Justice Almanzar, and Vencord contributors"] } | ||
} | ||
], | ||
"eqeqeq": ["error", "always", { "null": "ignore" }], | ||
"spaced-comment": ["error", "always", { "markers": ["!"] }], | ||
"yoda": "error", | ||
"prefer-destructuring": ["error", { "object": true, "array": false }], | ||
"operator-assignment": ["error", "always"], | ||
"no-useless-computed-key": "error", | ||
"no-unneeded-ternary": ["error", { "defaultAssignment": false }], | ||
"no-invalid-regexp": "error", | ||
"no-constant-condition": ["error", { "checkLoops": false }], | ||
"no-extra-semi": "error", | ||
"dot-notation": "error", | ||
"no-useless-escape": "error", | ||
"no-fallthrough": "error", | ||
"for-direction": "error", | ||
"no-async-promise-executor": "error", | ||
"no-cond-assign": "error", | ||
"no-dupe-else-if": "error", | ||
"no-duplicate-case": "error", | ||
"no-irregular-whitespace": "error", | ||
"no-loss-of-precision": "error", | ||
"no-misleading-character-class": "error", | ||
"no-prototype-builtins": "error", | ||
"no-regex-spaces": "error", | ||
"no-shadow-restricted-names": "error", | ||
"no-unexpected-multiline": "error", | ||
"no-unsafe-optional-chaining": "error", | ||
"no-useless-backreference": "error", | ||
"use-isnan": "error", | ||
"prefer-const": "error", | ||
"prefer-spread": "error", | ||
|
||
"@typescript-eslint/consistent-type-imports": "error", | ||
"simple-import-sort/imports": "error", | ||
"simple-import-sort/exports": "error", | ||
|
||
"unused-imports/no-unused-imports": "error", | ||
|
||
"path-alias/no-relative": "error", | ||
|
||
"prettier/prettier": "error" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
dist/ | ||
node_modules/ | ||
|
||
# Auto generated Wails bindings | ||
wailsjs/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
tabWidth: 4 | ||
semi: true | ||
printWidth: 120 | ||
trailingComma: none | ||
bracketSpacing: true | ||
arrowParens: avoid | ||
useTabs: false | ||
endOfLine: lf | ||
plugins: | ||
- "prettier-plugin-svelte" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
|
||
<title>Vencord Installer</title> | ||
</head> | ||
<body> | ||
<div id="app"></div> | ||
<script type="module" src="/src/index.ts"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
"name": "vinstaller", | ||
"version": "0.0.1", | ||
"private": true, | ||
"main": "index.js", | ||
"homepage": "https://vencord.dev/", | ||
"license": "GPL-3.0-or-later", | ||
"packageManager": "[email protected]", | ||
"engines": { | ||
"node": ">=18", | ||
"pnpm": ">=8" | ||
}, | ||
"scripts": { | ||
"dev": "vite dev", | ||
"build": "vite build", | ||
"serve": "vite preview", | ||
"lint": "eslint . --ext .js,.jsx,.ts,.tsx,.mts,.mjs", | ||
"lint:fix": "pnpm lint --fix" | ||
}, | ||
"dependencies": { | ||
"@fontsource-variable/inter": "^5.0.8", | ||
"@fontsource/inter": "^5.0.8", | ||
"svelte-feather-icons": "^4.0.1" | ||
}, | ||
"devDependencies": { | ||
"@sveltejs/vite-plugin-svelte": "^2.4.5", | ||
"@typescript-eslint/eslint-plugin": "^6.2.1", | ||
"@typescript-eslint/parser": "^6.2.1", | ||
"eslint": "^8.47.0", | ||
"eslint-config-prettier": "^8.9.0", | ||
"eslint-import-resolver-alias": "^1.1.2", | ||
"eslint-plugin-path-alias": "^1.0.0", | ||
"eslint-plugin-prettier": "^5.0.0", | ||
"eslint-plugin-simple-header": "^1.0.2", | ||
"eslint-plugin-simple-import-sort": "^10.0.0", | ||
"eslint-plugin-svelte": "^2.32.4", | ||
"eslint-plugin-unused-imports": "^3.0.0", | ||
"prettier": "^3.0.1", | ||
"prettier-plugin-svelte": "^3.0.3", | ||
"svelte": "^4.2.0", | ||
"type-fest": "^4.2.0", | ||
"typescript": "^5.1.6", | ||
"vite": "^4.4.9" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1f9644a559614fc9c54f09691c3b3f90 |
Oops, something went wrong.