3 Commits

Author SHA1 Message Date
f11f096338 docs: update install instructions to use apt instead of dpkg
All checks were successful
Build and Release Zed Editor / check-version (push) Successful in 3s
Build and Release Zed Editor / build-and-release (push) Has been skipped
2025-10-14 12:02:13 +02:00
7e9133ed0d feat: use apt install instead of dpkg for .deb installation
All checks were successful
Build and Release Zed Editor / check-version (push) Successful in 3s
Build and Release Zed Editor / build-and-release (push) Has been skipped
2025-10-14 11:59:53 +02:00
ba86192bfd feat: fail build if dependency detection returns no packages
All checks were successful
Build and Release Zed Editor / check-version (push) Successful in 4s
Build and Release Zed Editor / build-and-release (push) Has been skipped
Add error message and exit if find-deps.sh does not detect any
dependencies. This prevents building a broken package with missing
library requirements.
2025-10-14 11:54:00 +02:00
3 changed files with 18 additions and 10 deletions

View File

@@ -104,7 +104,7 @@ jobs:
```bash
# Download and install the package
wget https://git.rawleenc.dev/${{ gitea.repository }}/releases/download/${{ needs.check-version.outputs.zed_version_tag }}/zed-editor_${{ needs.check-version.outputs.zed_version }}_amd64.deb
sudo dpkg -i zed-editor_${{ needs.check-version.outputs.zed_version }}_amd64.deb
sudo apt install ./zed-editor_${{ needs.check-version.outputs.zed_version }}_amd64.deb
# Or install from the APT repository (if configured)
sudo apt update

View File

@@ -96,18 +96,27 @@ $(DEB_FILE): $(EXTRACT_DIR)/.extracted
@chmod +x $(FIND_DEPS_SCRIPT)
@echo "Detecting library dependencies..."
@DEPS=$$($(FIND_DEPS_SCRIPT) --quiet --format makefile $(EXTRACT_DIR)/zed.app/lib); \
if [ -z "$$DEPS" ]; then \
echo ""; \
echo "ERROR: Failed to detect library dependencies!"; \
echo "The dependency detection script did not return any packages."; \
echo "This may indicate a problem with:"; \
echo " - The find-deps.sh script"; \
echo " - The bundled libraries in $(EXTRACT_DIR)/zed.app/lib"; \
echo " - Missing system tools (ldd, dpkg-query, etc.)"; \
echo ""; \
echo "Please investigate and fix the issue before building."; \
echo "Run 'make list-deps' for more details."; \
echo ""; \
exit 1; \
fi; \
echo "Package: $(PACKAGE_NAME)" > $(CONTROL_DIR)/control; \
echo "Version: $(VERSION)" >> $(CONTROL_DIR)/control; \
echo "Section: editors" >> $(CONTROL_DIR)/control; \
echo "Priority: optional" >> $(CONTROL_DIR)/control; \
echo "Architecture: amd64" >> $(CONTROL_DIR)/control; \
if [ -n "$$DEPS" ]; then \
echo "Depends: $$DEPS" >> $(CONTROL_DIR)/control; \
echo " Detected dependencies: $$DEPS"; \
else \
echo "Depends: libc6" >> $(CONTROL_DIR)/control; \
echo " Warning: Could not detect dependencies, using minimal set"; \
fi; \
echo "Depends: $$DEPS" >> $(CONTROL_DIR)/control; \
echo " Detected dependencies: $$DEPS"; \
echo "Maintainer: Zed Packager <packager@local>" >> $(CONTROL_DIR)/control; \
echo "Description: Zed - A high-performance, multiplayer code editor" >> $(CONTROL_DIR)/control; \
echo " Zed is a next-generation code editor designed for" >> $(CONTROL_DIR)/control; \

View File

@@ -43,8 +43,7 @@ This will show a detailed analysis of each `.so` library and its corresponding D
### Install the package
```bash
sudo dpkg -i build/zed-editor_*.deb
sudo apt-get install -f # Install missing dependencies if any
sudo apt install ./build/zed-editor_*.deb
```
### Clean up