Skip to content

Commit a446052

Browse files
authored
fix: windows blank screen (#74)
1 parent 7de2b52 commit a446052

3 files changed

Lines changed: 21 additions & 12 deletions

File tree

.github/workflows/release.yml

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -103,25 +103,33 @@ jobs:
103103
104104
- name: Generate Release Notes with Dynamic File Sizes
105105
run: |
106-
# Function to format file size
106+
# Function to format file size with decimals
107107
format_size() {
108108
local size=$1
109109
if (( size < 1024 )); then
110110
echo "${size} B"
111111
elif (( size < 1048576 )); then
112-
echo "$(( size / 1024 )) KB"
112+
printf "%.1f KB\n" "$(echo "scale=1; $size / 1024" | bc)"
113113
else
114-
echo "$(( size / 1048576 )) MB"
114+
printf "%.1f MB\n" "$(echo "scale=1; $size / 1048576" | bc)"
115115
fi
116116
}
117117
118-
# Get Windows exe size
119-
WIN_EXE=$(find artifacts/windows -type f -name "*.exe" -printf '%s' | head -1)
120-
WIN_SIZE=$(format_size $WIN_EXE)
121-
122-
# Get Linux deb size
123-
LINUX_DEB=$(find artifacts/linux -type f -name "*.deb" -printf '%s' | head -1)
124-
LINUX_SIZE=$(format_size $LINUX_DEB)
118+
# Get Windows exe size (Setup.exe is the actual installer)
119+
WIN_EXE=$(find artifacts/windows -type f -name "*Setup.exe" -printf '%s\n' | sort -rn | head -1)
120+
if [ -z "$WIN_EXE" ]; then
121+
WIN_SIZE="Unknown"
122+
else
123+
WIN_SIZE=$(format_size $WIN_EXE)
124+
fi
125+
126+
# Get Linux deb size (latest/largest deb file)
127+
LINUX_DEB=$(find artifacts/linux -type f -name "*.deb" -printf '%s\n' | sort -rn | head -1)
128+
if [ -z "$LINUX_DEB" ]; then
129+
LINUX_SIZE="Unknown"
130+
else
131+
LINUX_SIZE=$(format_size $LINUX_DEB)
132+
fi
125133
126134
cat > release_notes.md << EOF
127135
# Loopi ${{ github.ref_name }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "loopi",
3-
"version": "1.2.2",
3+
"version": "1.2.3",
44
"description": "Loopi — Visual Browser Automation for humans and teams",
55
"author": "Dyan-Dev",
66
"main": ".webpack/main",

src/components/Dashboard.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import { BookOpen, Plus, Upload } from "lucide-react";
22
import { useState } from "react";
33
import type { StoredAutomation } from "../types";
44
import { importAutomation } from "../utils/automationIO";
5-
import { EXAMPLES, ExamplesComponent, YourAutomations } from "./dashboard";
5+
import { EXAMPLES, ExamplesComponent } from "./dashboard/ExamplesComponent";
6+
import { YourAutomations } from "./dashboard/YourAutomations";
67
import { Button } from "./ui/button";
78
import { Tabs, TabsContent, TabsList, TabsTrigger } from "./ui/tabs";
89

0 commit comments

Comments
 (0)