Skip to content

Commit e2f994b

Browse files
committed
Merge branch 'dev'
2 parents 329e588 + 79b4192 commit e2f994b

7 files changed

Lines changed: 36 additions & 10 deletions

File tree

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,23 @@
11
name: Manually Upload to Launchpad PPA
22

3-
on: workflow_dispatch
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
rev:
7+
description: 'FIGMA_LINUX_REV'
8+
required: true
9+
default: '2'
410

511
jobs:
612
setup:
713
name: Setup
814
uses: ./.github/workflows/reuse_setup.yml
915
secrets: inherit
1016

11-
flathub:
17+
launchpad:
1218
name: Upload
1319
uses: ./.github/workflows/reuse_launchpad.yml
14-
secrets: inherit
1520
needs: setup
21+
secrets: inherit
22+
with:
23+
rev: "${{ github.event.inputs.rev }}"

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,6 @@ jobs:
6666
launchpad:
6767
name: Upload
6868
uses: ./.github/workflows/reuse_launchpad.yml
69-
secrets: inherit
69+
rev:
70+
FIGMA_LINUX_REV: 1
7071
needs: [release_amd64, release_arm64v8]

.github/workflows/reuse_launchpad.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
name: Launchpad PPA
22

3-
on: workflow_call
3+
on:
4+
workflow_call:
5+
inputs:
6+
rev:
7+
required: true
8+
type: string
49

510
jobs:
611
launchpad:
@@ -11,7 +16,7 @@ jobs:
1116
with:
1217
path: ./
1318

14-
- name: Get Artefacts
19+
- name: Prepare
1520
run: |
1621
cd ./repo
1722
newVersion=$(git tag --sort=version:refname | tail -n1 | tr -d 'v' | tr -d '\n')
@@ -41,4 +46,4 @@ jobs:
4146

4247
- name: Build and Upload PPA
4348
run: |
44-
./scripts/build_ppa.sh "1"
49+
./scripts/build_ppa.sh "${{ github.event.inputs.rev }}"

docker/Build_ppa

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ENV USER=root
1010
COPY ./build ./build
1111
COPY ./gpg ./
1212

13-
RUN cat ./build/figma-linux-${FIGMA_LINUX_VERSION}/debian/changelog && \
13+
RUN apt update && apt install xdg-utils -y && cat ./build/figma-linux-${FIGMA_LINUX_VERSION}/debian/changelog && \
1414
chmod a+x ./build/figma-linux-${FIGMA_LINUX_VERSION}/figma-linux && \
1515
chmod a+x ./build/figma-linux-${FIGMA_LINUX_VERSION}/chrome-sandbox && \
1616
chmod a+x ./build/figma-linux-${FIGMA_LINUX_VERSION}/*.sh && \

scripts/build_ppa.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,17 @@ mkdir -p $workdir/resources/icon;
2020

2121
echo "PWD: $(pwd)";
2222

23+
rm -rf /tmp/tmp_changelog
24+
touch /tmp/tmp_changelog
25+
echo "figma-linux (${version}-${rev}ubuntu0) devel; urgency=medium" >> /tmp/tmp_changelog
26+
echo "" >> /tmp/tmp_changelog
27+
echo " * Publish ${version} version" >> /tmp/tmp_changelog
28+
echo "${notes}" >> /tmp/tmp_changelog
29+
echo " -- Chugunov Roman <Zebs-BMK@yandex.ru> $(date -R)" >> /tmp/tmp_changelog
30+
echo "" >> /tmp/tmp_changelog
31+
echo "$(cat /tmp/tmp_changelog ./scripts/debian/changelog)" > ./scripts/debian/changelog
32+
rm -rf /tmp/tmp_changelog
33+
2334
cp -rf ./scripts/debian $workdir;
2435
cp -rf ${linux_unpacked}/* $workdir;
2536
cp -rf ${linux_unpacked}/icons/* $workdir/resources/icon;

scripts/debian/control

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ Source: figma-linux
22
Section: graphics
33
Priority: optional
44
Maintainer: Chugunov Roman <Zebs-BMK@yandex.ru>
5-
Build-Depends: debhelper (>= 10), rsync
5+
Build-Depends: debhelper (>= 10), rsync, xdg-utils
66
Standards-Version: 4.1.2
77
Homepage: https://github.com/Figma-linux/figma-linux
88
#Vcs-Git: https://anonscm.debian.org/git/collab-maint/figma-linux.git
99
#Vcs-Browser: https://anonscm.debian.org/cgit/collab-maint/figma-linux.git
1010

1111
Package: figma-linux
12-
Depends: libnss3 (>= 3.26)
12+
Depends: libnss3 (>= 3.26), xdg-utils
1313
Architecture: amd64
1414
Description: Figma is the first interface design tool based in the browser, making it easier for teams to create software.

scripts/debian/rules

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ override_dh_auto_install:
1212
mkdir -p ./debian/figma-linux/usr/share/icons/hicolor
1313
rsync -av --progress ./* ./debian/figma-linux/opt/figma-linux/ --exclude debian --exclude .pc --exclude resources/icon --exclude resources/figma-linux.desktop
1414
cp -rf ./resources/figma-linux.desktop ./debian/figma-linux/usr/share/applications/
15+
chmod 755 ./debian/figma-linux/opt/figma-linux/figma-linux
1516

1617
bash -c 'for file in ./resources/icon/*; do name=`basename $${file%.*}`; mkdir -p ./debian/figma-linux/usr/share/icons/hicolor/$${name}/apps; cp -rf "$$file" ./debian/figma-linux/usr/share/icons/hicolor/$${name}/apps/figma-linux.png; done'
1718

0 commit comments

Comments
 (0)