fix: flatpak bundle (#14155)
This commit is contained in:
9
.github/workflows/release-desktop.yml
vendored
9
.github/workflows/release-desktop.yml
vendored
@@ -128,17 +128,26 @@ jobs:
|
|||||||
- name: Install additional dependencies on Linux
|
- name: Install additional dependencies on Linux
|
||||||
if: ${{ matrix.spec.platform == 'linux' }}
|
if: ${{ matrix.spec.platform == 'linux' }}
|
||||||
run: |
|
run: |
|
||||||
|
df -h
|
||||||
sudo add-apt-repository universe
|
sudo add-apt-repository universe
|
||||||
sudo apt install -y libfuse2 elfutils flatpak flatpak-builder
|
sudo apt install -y libfuse2 elfutils flatpak flatpak-builder
|
||||||
flatpak remote-add --user --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
|
flatpak remote-add --user --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
|
||||||
flatpak update
|
flatpak update
|
||||||
# some flatpak deps need git protocol.file.allow
|
# some flatpak deps need git protocol.file.allow
|
||||||
git config --global protocol.file.allow always
|
git config --global protocol.file.allow always
|
||||||
|
# clean up apt cache to save disk space
|
||||||
|
sudo -E apt-get -y purge azure-cli* zulu* hhvm* llvm* firefox* google* dotnet* aspnetcore* powershell* adoptopenjdk* mysql* php* mongodb* moby* snap* || true
|
||||||
|
sudo -E apt-get -qq autoremove --purge
|
||||||
|
sudo rm -rf /usr/share/dotnet /opt/ghc /opt/hostedtoolcache/CodeQL /usr/local/lib/android
|
||||||
|
sudo apt-get clean
|
||||||
|
rm -rf ~/.cache/yarn ~/.npm
|
||||||
|
df -h
|
||||||
|
|
||||||
- name: Remove nbstore node_modules
|
- name: Remove nbstore node_modules
|
||||||
shell: bash
|
shell: bash
|
||||||
# node_modules of nbstore is not needed for building, and it will make the build process out of memory
|
# node_modules of nbstore is not needed for building, and it will make the build process out of memory
|
||||||
run: |
|
run: |
|
||||||
|
cargo clean
|
||||||
rm -rf packages/frontend/apps/electron/node_modules/@affine/nbstore/node_modules/@blocksuite
|
rm -rf packages/frontend/apps/electron/node_modules/@affine/nbstore/node_modules/@blocksuite
|
||||||
rm -rf packages/frontend/apps/electron/node_modules/@affine/native/node_modules
|
rm -rf packages/frontend/apps/electron/node_modules/@affine/native/node_modules
|
||||||
|
|
||||||
|
|||||||
@@ -12,8 +12,8 @@ import {
|
|||||||
arch,
|
arch,
|
||||||
buildType,
|
buildType,
|
||||||
icnsPath,
|
icnsPath,
|
||||||
iconPngPath,
|
|
||||||
iconUrl,
|
iconUrl,
|
||||||
|
iconX64PngPath,
|
||||||
iconX512PngPath,
|
iconX512PngPath,
|
||||||
icoPath,
|
icoPath,
|
||||||
platform,
|
platform,
|
||||||
@@ -120,8 +120,11 @@ const makers = [
|
|||||||
mimeType: linuxMimeTypes,
|
mimeType: linuxMimeTypes,
|
||||||
productName,
|
productName,
|
||||||
bin: productName,
|
bin: productName,
|
||||||
id: appIdMap[buildType],
|
id: fromBuildIdentifier(appIdMap),
|
||||||
icon: iconPngPath, // not working yet
|
icon: {
|
||||||
|
'64x64': iconX64PngPath,
|
||||||
|
'512x512': iconX512PngPath,
|
||||||
|
},
|
||||||
branch: buildType,
|
branch: buildType,
|
||||||
runtime: 'org.freedesktop.Platform',
|
runtime: 'org.freedesktop.Platform',
|
||||||
runtimeVersion: '25.08',
|
runtimeVersion: '25.08',
|
||||||
|
|||||||
Reference in New Issue
Block a user