-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstallation.html
More file actions
168 lines (134 loc) · 7.48 KB
/
Copy pathinstallation.html
File metadata and controls
168 lines (134 loc) · 7.48 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
<load
src="/src/partials/header.html"
bodyClasses="bg-[url('/assets/images/subpage-bg.svg')] bg-cover bg-center bg-brand-purple-darkest bg-repeat-y"
/>
<main class="container">
<div class="max-w-3xl">
<!-- Header -->
<div class="install-head mt-32">
<h1 class="text-3xl md:text-4xl lg:text-5xl font-bold text-white my-4">
Get started with <span class="text-gradient-brand">Flites</span> on your platform of choice
</h1>
<p class="text-brand-gray-light py-9">
Follow the installation instructions below to set up Flites on Linux, macOS, Windows, or directly in your browser.
</p>
</div>
<!-- Platform macOS -->
<div class="platform-install platform-macos my-28">
<h2 class="text-3xl md:text-4xl font-bold text-white my-12">
<a href="#macos" id="macos" class="hover:underline">#</a> macOS
</h2>
<ol class="">
<li>Download the latest macOS build: <a href="https://flites-api.stage.jetzt/download-macos" download class="font-bold text-brand-purple-light hover:underline hover:text-brand-purple-highlight">Download</a></li>
<li>Open the .dmg file and drag Flites into the Applications folder.</li>
<li>Launch Flites from the Applications folder.</li>
</ol>
</div>
<!-- Platform Windows -->
<div class="platform-install platform-windows my-28">
<h2 class="text-3xl md:text-4xl font-bold text-white my-12">
<a href="#windows" id="windows" class="hover:underline">#</a> Windows
</h2>
<ol class="">
<li>Download the latest Windows installer: <a href="https://flites-api.stage.jetzt/download-windows" download class="font-bold text-brand-purple-light hover:underline hover:text-brand-purple-highlight">Download</a></li>
<li>Run the .exe file and follow the installation steps.</li>
<li>Open Flites from the Start Menu.</li>
</ol>
</div>
<!-- Platform Linux (deb) -->
<div class="platform-install platform-windows my-28">
<h2 class="text-3xl md:text-4xl font-bold text-white my-12">
<a href="#linux" id="linux" class="hover:underline">#</a> Linux
</h2>
<!-- .deb Package -->
<div class="platform-install-variant pb-8">
<h3 class="text-2xl text-white my-12">.deb Package (Debian, Ubuntu, Pop_OS!, TuxedoOS, etc.)</h3>
<ol class="">
<li>Download the latest .deb package: <a href="https://flites-api.stage.jetzt/download-linux-deb" download class="font-bold text-brand-purple-light hover:underline hover:text-brand-purple-highlight">Download</a></li>
<li>Install it using the command below</li>
<li>Then launch flites from your applications menu</li>
</ol>
<div class="code-block-container bg-brand-purple-middark rounded-lg overflow-hidden my-12 border-brand-purple-light border border-solid">
<div class="header bg-gray-900 text-gray-300 px-4 py-2 flex justify-between items-center">
<span class="font-mono text-sm">sh</span>
<button
class="copy-btn flex items-center text-sm text-gray-300 hover:text-white focus:outline-none"
onclick="copyCode(this)"
>
<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4 mr-1" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
<path stroke-linecap="round" stroke-linejoin="round" d="M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z" />
</svg>
Copy
</button>
</div>
<pre class="p-4 border-brand-purple-light border-t border-solid whitespace-normal">
<code class="code-content text-white font-mono">sudo dpkg -i flites.deb</code>
</pre>
</div>
</div>
<!-- App Image Package -->
<div class="platform-install-variant pb-8">
<h3 class="text-2xl text-white mt-12">AppImage</h3>
<div class="text-xl font-light mb-12">(we recommend installing using AppImageLauncher)</div>
<ol class="">
<li>Download the latest .AppImage file: <a href="https://flites-api.stage.jetzt/download-linux-app-image" download class="font-bold text-brand-purple-light hover:underline hover:text-brand-purple-highlight">Download</a></li>
<li><span>(Recommended) Install <a href="https://github.com/TheAssassin/AppImageLauncherAppImageLauncher" target="_blank" class="text-brand-purple-light hover:underline hover:text-brand-purple-highlight" rel="nofollow noindex">AppImageLauncher</a> for automatic updates and integration.</span></li>
<li>If using AppImageLauncher: Just double-click the file, and it will be added to your applications.</li>
</ol>
<hr class="my-12 border-brand-purple-light border-solid opacity-20" />
or alternatively, run manually:
<div class="code-block-container bg-brand-purple-middark rounded-lg overflow-hidden my-12 border-brand-purple-light border border-solid">
<div class="header bg-gray-900 text-gray-300 px-4 py-2 flex justify-between items-center">
<span class="font-mono text-sm">sh</span>
<button
class="copy-btn flex items-center text-sm text-gray-300 hover:text-white focus:outline-none"
onclick="copyCode(this)"
>
<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4 mr-1" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
<path stroke-linecap="round" stroke-linejoin="round" d="M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z" />
</svg>
Copy
</button>
</div>
<pre class="p-4 border-brand-purple-light border-t border-solid whitespace-normal">
<code class="code-content text-white font-mono">chmod +x flites.AppImage<br />
./flites.AppImage</code>
</pre>
</div>
</div>
</div>
</div>
</main>
<!-- Add JavaScript for Copy Functionality -->
<script>
function copyCode(buttonElement) {
const codeBlockContainer = buttonElement.closest('.code-block-container');
const codeElement = codeBlockContainer.querySelector('.code-content');
const textToCopy = codeElement.innerText;
navigator.clipboard.writeText(textToCopy).then(() => {
buttonElement.innerHTML = `
<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4 mr-1" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
<path stroke-linecap="round" stroke-linejoin="round" d="M5 13l4 4L19 7" />
</svg>
Copied!`;
setTimeout(() => {
buttonElement.innerHTML = `
<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4 mr-1" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
<path stroke-linecap="round" stroke-linejoin="round" d="M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z" />
</svg>
Copy`;
}, 2000);
}).catch(err => {
console.error('Failed to copy text: ', err);
buttonElement.innerText = 'Error';
setTimeout(() => {
buttonElement.innerHTML = `
<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4 mr-1" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
<path stroke-linecap="round" stroke-linejoin="round" d="M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z" />
</svg>
Copy`;
}, 2000);
});
}
</script>
<load src="/src/partials/footer.html" footerClasses="brand-purple-middark" />