File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : 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
511jobs :
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 }}"
Original file line number Diff line number Diff line change 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]
Original file line number Diff line number Diff line change 11name : Launchpad PPA
22
3- on : workflow_call
3+ on :
4+ workflow_call :
5+ inputs :
6+ rev :
7+ required : true
8+ type : string
49
510jobs :
611 launchpad :
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')
4146
4247 - name : Build and Upload PPA
4348 run : |
44- ./scripts/build_ppa.sh "1 "
49+ ./scripts/build_ppa.sh "${{ github.event.inputs.rev }} "
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ ENV USER=root
1010COPY ./build ./build
1111COPY ./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 && \
Original file line number Diff line number Diff line change @@ -20,6 +20,17 @@ mkdir -p $workdir/resources/icon;
2020
2121echo " 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+
2334cp -rf ./scripts/debian $workdir ;
2435cp -rf ${linux_unpacked} /* $workdir ;
2536cp -rf ${linux_unpacked} /icons/* $workdir /resources/icon;
Original file line number Diff line number Diff line change @@ -2,13 +2,13 @@ Source: figma-linux
22Section: graphics
33Priority: optional
44Maintainer: Chugunov Roman <Zebs-BMK@yandex.ru>
5- Build-Depends: debhelper (>= 10), rsync
5+ Build-Depends: debhelper (>= 10), rsync, xdg-utils
66Standards-Version: 4.1.2
77Homepage: 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
1111Package: figma-linux
12- Depends: libnss3 (>= 3.26)
12+ Depends: libnss3 (>= 3.26), xdg-utils
1313Architecture: amd64
1414Description: Figma is the first interface design tool based in the browser, making it easier for teams to create software.
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments