Skip to content

Commit

Permalink
ci: fix size
Browse files Browse the repository at this point in the history
Signed-off-by: aspel <[email protected]>
  • Loading branch information
aspel committed Nov 18, 2023
1 parent 69e4fa4 commit 1063e56
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- uses: actions/checkout@v4
- run: make
- name: Package tar.xz archive
run: tar -cf - -C ${GITHUB_WORKSPACE}/PathOfBuilding $(ls -A ${GITHUB_WORKSPACE}"/PathOfBuilding") | xz -c > PathOfBuilding.linux.amd64.tar.xz
run: tar -cf - -C ${GITHUB_WORKSPACE}/PathOfBuilding $(ls -A ${GITHUB_WORKSPACE}"/linux") | xz -c > PathOfBuilding.linux.amd64.tar.xz
- name: Cheking GUI
env:
IMGUR_CLIENT_ID: ${{ secrets.IMGUR_CLIENT_ID }}
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ Darwin: pob

Linux: pob
meson setup --buildtype=release build
meson setup --buildtype=release --prefix=${DIR}/linux build
meson compile -C build
mv build/PathOfBuilding PathOfBuilding/
meson install -C build
echo "Finished $(OS_NAME)"

pob: clear tools_$(OS_NAME) load_pob luacurl
Expand Down
29 changes: 27 additions & 2 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ project('POB Frontend', 'cpp', default_options : ['cpp_std=c++17'])

qt5_dep = dependency('qt5', modules : ['Gui','Core','Widgets'])
lua_dep = dependency('luajit')
zlib_dep = dependency('zlib')

# NB on OSX you also need to invoke meson like so, because luajit:
# LDFLAGS="-pagezero_size 10000 -image_base 100000000" meson pobfrontend build
if build_machine.system() == 'darwin'
Expand All @@ -10,7 +12,7 @@ if build_machine.system() == 'darwin'
else
gl_dep = dependency('gl')
endif
zlib_dep = dependency('zlib')


# Import the extension module that knows how
# to invoke Qt tools.
Expand All @@ -29,11 +31,34 @@ else
install : true)
endif

exclude_dir = [
'.github',
'docs',
'runtime',
'tests',
]

exclude_file = [
'runtime-win32.zip',
'.busted',
'.gitattributes',
'.gitignore',
]

if build_machine.system() == 'darwin'
install_data('pobLogo.icns', install_dir : 'Contents/Resources')
install_data('Info.plist', install_dir : 'Contents')
install_data('pobWrapper.sh', install_dir : 'Contents/MacOS')
install_subdir('PathOfBuilding', install_dir : 'Contents/MacOS', strip_directory : true)
install_subdir('PathOfBuilding', install_dir : 'Contents/MacOS',
exclude_directories: exclude_dir,
exclude_files: exclude_file,
strip_directory : true)
install_subdir('Frameworks', install_dir: 'Contents')
meson.add_install_script('bash', '-xc', 'cd ${MESON_INSTALL_PREFIX}/Contents && dylibbundler --overwrite-dir --create-dir --bundle-deps --fix-file MacOS/lcurl.so')
else
install_data('pobWrapper.sh')
install_subdir('PathOfBuilding',
exclude_directories: exclude_dir,
exclude_files: exclude_file,
strip_directory : true)
endif

0 comments on commit 1063e56

Please sign in to comment.