Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update org.cvfosammmm.Setzer.json #1

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
on:
push:
branches: [main]
pull_request:
name: CI
jobs:
flatpak:
name: "Flatpak"
runs-on: ubuntu-latest
container:
image: bilelmoussaoui/flatpak-github-actions:gnome-40
options: --privileged
steps:
- uses: actions/checkout@v2
- uses: bilelmoussaoui/flatpak-github-actions/flatpak-builder@v3
with:
bundle: palette.flatpak
manifest-path: org.cvfosammmm.Setzer.json
run-tests: true
cache-key: flatpak-builder-${{ github.sha }}
46 changes: 44 additions & 2 deletions org.cvfosammmm.Setzer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"runtime": "org.gnome.Platform",
"runtime-version": "3.38",
"sdk": "org.gnome.Sdk",
"sdk-extensions": ["org.freedesktop.Sdk.Extension.texlive"],
"command": "setzer",
"finish-args": [
"--share=ipc",
Expand All @@ -22,13 +21,56 @@
"--env=DCONF_USER_CONFIG_DIR=.config/dconf"
],
"modules": [
{
"name": "p7zip",
"no-autogen": true,
"build-options": {
"prefix": "/app/extensions/TexLive"
},
"make-args": ["7z"],
"cleanup": ["*"],
"sources": [
{
"type": "archive",
"url": "https://sourceforge.net/projects/p7zip/files/p7zip/16.02/p7zip_16.02_src_all.tar.bz2",
"sha256": "5eb20ac0e2944f6cb9c2d51dd6c4518941c185347d4089ea89087ffdd6e2341f"
},
{
"type": "shell",
"commands": ["sed -i 's|/usr/local|/app/extensions/TexLive|g' makefile.common"]
},
]
},

{
"name": "texlive",
"buildsystem": "simple",
"sources": [
{
"type":"file",
"url": "http://mirrors.ctan.org/systems/texlive/Images/texlive.iso",
"sha512": "bad51ec47613cf295ed77472d10e517fe79e501f73ff918a1068f03ef43f4394ceb165051132bcbcb53a05650b77ea907f327c1799c38ae476ca38620aa7c1fe"
},
{
"type": "file",
"path": "texlive.profile"
},
{
"type": "shell",
"commands": ["7z x texlive.iso"]
},
{
"type": "patch",
"path" : "p7zip-gcc10.patch"
}
],
"build-commands": [
"/usr/lib/sdk/texlive/install.sh"
"chmod +x install-tl",
"echo \"In\" | TEXLIVE_INSTALL_PREFIX=/app/extensions/TexLive ./install-tl --profile texlive.profile",
"rm -rf /app/extensions/TexLive/texmf-dist/doc"
]
},

{
"name": "gspell",
"cleanup": [
Expand Down
21 changes: 21 additions & 0 deletions p7zip-gcc10.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@

--- a/CPP/Windows/ErrorMsg.cpp 2020-05-28 00:35:02.729896917 +0200
+++ b/CPP/Windows/ErrorMsg.cpp 2020-05-28 00:40:01.676442629 +0200
@@ -13,7 +13,7 @@
const char * txt = 0;
AString msg;

- switch(errorCode) {
+ switch(HRESULT(errorCode)) {
case ERROR_NO_MORE_FILES : txt = "No more files"; break ;
case E_NOTIMPL : txt = "E_NOTIMPL"; break ;
case E_NOINTERFACE : txt = "E_NOINTERFACE"; break ;
@@ -43,7 +43,7 @@
const char * txt = 0;
AString msg;

- switch(messageID) {
+ switch(HRESULT(messageID)) {
case ERROR_NO_MORE_FILES : txt = "No more files"; break ;
case E_NOTIMPL : txt = "E_NOTIMPL"; break ;
case E_NOINTERFACE : txt = "E_NOINTERFACE"; break ;
32 changes: 32 additions & 0 deletions texlive.profile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
selected_scheme scheme-basic
TEXDIR /app/extensions/TexLive/2018
TEXMFCONFIG /app/extensions/TexLive/.texlive2018/texmf-config
TEXMFHOME /app/extensions/TexLive/texmf
TEXMFLOCAL /app/extensions/TexLive/texmf-local
TEXMFSYSCONFIG /app/extensions/TexLive/2018/texmf-config
TEXMFSYSVAR /app/extensions/TexLive/2018/texmf-var
TEXMFVAR /app/extensions/TexLive/.texlive2018/texmf-var
binary_x86_64-linux 1
collection-latex 1
collection-xetex 1
collection-latexrecommended 1
collection-binextra 1
collection-fontsrecommended 1
instopt_adjustpath 0
instopt_adjustrepo 1
instopt_letter 0
instopt_portable 1
instopt_write18_restricted 1
tlpdbopt_autobackup 1
tlpdbopt_backupdir tlpkg/backups
tlpdbopt_create_formats 1
tlpdbopt_desktop_integration 1
tlpdbopt_file_assocs 1
tlpdbopt_generate_updmap 0
tlpdbopt_install_docfiles 0
tlpdbopt_install_srcfiles 0
tlpdbopt_post_code 1
tlpdbopt_sys_bin /usr/local/bin
tlpdbopt_sys_info /usr/local/share/info
tlpdbopt_sys_man /usr/local/share/man
tlpdbopt_w32_multi_user 1