File tree 3 files changed +24
-15
lines changed
frontend/src/components/Landing
3 files changed +24
-15
lines changed Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ jobs:
155
155
tar -cf ../../dataline.tar dataline
156
156
- uses : actions/upload-artifact@v4
157
157
with :
158
- name : dataline-${{ steps.calculate_architecture.outputs.result }}.tar
158
+ name : dataline-macos- ${{ steps.calculate_architecture.outputs.result }}.tar
159
159
# default workdir is only for runs, here we are using "uses" so it does not apply
160
160
path : dataline.tar
161
161
overwrite : true
Original file line number Diff line number Diff line change 1
1
import { useState , useEffect } from "react" ;
2
2
import { ArrowDownTrayIcon } from "@heroicons/react/20/solid" ;
3
3
4
- export type OS = "darwin" | "windows" | "linux" ;
4
+ export type OS = "darwin-x86_64" | "darwin-arm64 " | "windows" | "linux" ;
5
5
6
6
interface GithubReleaseAsset {
7
7
browser_download_url : string ;
@@ -34,8 +34,10 @@ export const DownloadReleaseButton = ({ os }: { os: OS }) => {
34
34
35
35
const getOSName = ( os : OS ) => {
36
36
switch ( os ) {
37
- case "darwin" :
38
- return "macOS" ;
37
+ case "darwin-x86_64" :
38
+ return "macOS (Intel)" ;
39
+ case "darwin-arm64" :
40
+ return "macOS (Apple Silicon)" ;
39
41
case "windows" :
40
42
return "Windows" ;
41
43
case "linux" :
@@ -47,10 +49,12 @@ export const DownloadReleaseButton = ({ os }: { os: OS }) => {
47
49
48
50
const getAssetName = ( os : OS ) => {
49
51
switch ( os ) {
50
- case "darwin" :
51
- return "dataline-macos-latest.tar.zip" ;
52
+ case "darwin-x86_64" :
53
+ return "dataline-macos-x86_64.tar.zip" ;
54
+ case "darwin-arm64" :
55
+ return "dataline-macos-arm64.tar.zip" ;
52
56
case "windows" :
53
- return "windows-artifact .zip" ;
57
+ return "dataline-windows .zip" ;
54
58
case "linux" :
55
59
return "dataline-linux.tar.zip" ;
56
60
default :
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ export const InstallSection = () => {
21
21
const detectOS = ( ) => {
22
22
const userAgent = window . navigator . userAgent . toLowerCase ( ) ;
23
23
if ( userAgent . indexOf ( "win" ) > - 1 ) return "Windows" ;
24
- if ( userAgent . indexOf ( "mac" ) > - 1 ) return "MacOS" ;
24
+ if ( userAgent . indexOf ( "mac" ) > - 1 ) return "MacOS (Apple Silicon) " ;
25
25
if ( userAgent . indexOf ( "linux" ) > - 1 ) return "Linux" ;
26
26
return "All" ;
27
27
} ;
@@ -34,9 +34,19 @@ export const InstallSection = () => {
34
34
35
35
const installationSections : Item [ ] = [
36
36
{
37
- title : "MacOS" ,
37
+ title : "Docker" ,
38
+ isDownloadable : false ,
39
+ code : "docker run -p 7377:7377 -v dataline:/home/.dataline --name dataline ramiawar/dataline:latest" ,
40
+ } ,
41
+ {
42
+ title : "MacOS (Intel)" ,
38
43
isDownloadable : true ,
39
- os : "darwin" ,
44
+ os : "darwin-x86_64" ,
45
+ } ,
46
+ {
47
+ title : "MacOS (Apple Silicon)" ,
48
+ isDownloadable : true ,
49
+ os : "darwin-arm64" ,
40
50
} ,
41
51
{
42
52
title : "Windows" ,
@@ -53,11 +63,6 @@ export const InstallSection = () => {
53
63
isDownloadable : false ,
54
64
code : "brew tap ramiawar/dataline && brew install dataline" ,
55
65
} ,
56
- {
57
- title : "Docker" ,
58
- isDownloadable : false ,
59
- code : "docker run -p 7377:7377 -v dataline:/home/.dataline --name dataline ramiawar/dataline:latest" ,
60
- } ,
61
66
{
62
67
title : "GH Releases" ,
63
68
code : "https://github.com/RamiAwar/dataline/releases" ,
You can’t perform that action at this time.
0 commit comments