Skip to content

Commit

Permalink
feat: linux AppImage
Browse files Browse the repository at this point in the history
  • Loading branch information
surunzi committed Dec 25, 2024
1 parent 390fa77 commit d4185a8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ jobs:
with:
java-version: '17'
distribution: 'temurin'
- uses: android-actions/setup-android@v3
- uses: android-actions/setup-android@v3
- if: github.event.inputs.os == 'ubuntu'
run: |
sudo apt-get install --no-install-recommends -y icnsutils graphicsmagick xz-utils
- run: |
npm i
npm run adb
Expand All @@ -39,4 +42,5 @@ jobs:
path: |
release/**/*.dmg
release/**/*.exe
release/**/*.AppImage
!release/**/win-unpacked/
3 changes: 2 additions & 1 deletion script/adb.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import isWindows from 'licia/isWindows.js'
import isMac from 'licia/isMac.js'
import normalizePath from 'licia/normalizePath.js'
import path from 'path'

Expand All @@ -12,7 +13,7 @@ const platformToolsPath = resolve(
)
const platformToolsDir = resolve(adbDir, 'platform-tools')
const downloadUrl = `https://dl.google.com/android/repository/platform-tools-latest-${
isWindows ? 'windows' : 'darwin'
isWindows ? 'windows' : (isMac ? 'darwin' : 'linux')
}.zip`
await $`curl -Lk ${downloadUrl} > ${platformToolsPath}`
await $`unzip -o ${platformToolsPath} -d ${adbDir}`
Expand Down
3 changes: 0 additions & 3 deletions src/renderer/components/ToolbarIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import { LunaToolbarButton } from 'luna-toolbar/react'
import LunaToolbar from 'luna-toolbar'
import { PropsWithChildren } from 'react'

interface IProps {
icon: string
title?: string
toolbar?: LunaToolbar
disabled?: boolean
state?: '' | 'hover' | 'active'
onClick: () => void
Expand All @@ -14,7 +12,6 @@ interface IProps {
export default function (props: PropsWithChildren<IProps>) {
return (
<LunaToolbarButton
toolbar={props.toolbar}
disabled={props.disabled}
state={props.state || ''}
onClick={props.onClick}
Expand Down

0 comments on commit d4185a8

Please sign in to comment.