UI: tombol GitHub + Donasi, tombol Open per shortcut, aksen gradien
- Footer: Check for Updates, GitHub (github.com/oxpoe/lazyrun), Donate (donasi.oxpoe.qzz.io) - Baris shortcut: tombol play untuk menjalankan (pakai exec_args hasil install) - metadata shortcut menyimpan exec_args; ada fallback ke binary/URL untuk data lama - Chip jumlah shortcut di header daftar + garis gradien brand di bawah header - README: link repo & donasi absolut
This commit is contained in:
1 parent
f00662627a
commit
b12efefd6a
10 files changed
+111
-4
No files matched your search
@@ -86,6 +86,19 @@ func TestInstallExecutable(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestInstallExecutableStoresExecArgs(t *testing.T) {
|
||||
home := testEnv(t)
|
||||
src := fakeBinary(t, home, "args")
|
||||
|
||||
sc, err := InstallExecutable(ExecOptions{BinaryPath: src, Name: "Args", Menu: true})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if len(sc.ExecArgs) != 1 || sc.ExecArgs[0] != sc.BinaryPath {
|
||||
t.Errorf("exec_args untuk tombol Open salah: %v", sc.ExecArgs)
|
||||
}
|
||||
}
|
||||
|
||||
func TestInstallExecutableDesktopOnly(t *testing.T) {
|
||||
home := testEnv(t)
|
||||
src := fakeBinary(t, home, "tool")
|
||||
@@ -188,6 +201,9 @@ func TestInstallWebAppFirefoxUsesNewWindow(t *testing.T) {
|
||||
if !strings.Contains(string(content), "Exec=/usr/bin/firefox --new-window https://example.com\n") {
|
||||
t.Errorf("Exec Firefox salah:\n%s", content)
|
||||
}
|
||||
if len(sc.ExecArgs) != 3 || sc.ExecArgs[2] != "https://example.com" {
|
||||
t.Errorf("exec_args PWA salah: %v", sc.ExecArgs)
|
||||
}
|
||||
}
|
||||
|
||||
func TestInstallWebAppFlatpakBrowser(t *testing.T) {
|
||||
|
||||
Reference in new issue
Block a user