Skip to content

Commit

Permalink
Merge pull request #391 from lifeibiren/master
Browse files Browse the repository at this point in the history
Script(fix): Fix error of clicking on URL and hide console terminal on MS Windows
  • Loading branch information
SilverRainZ authored Feb 22, 2023
2 parents 4622ea0 + 556a607 commit 74d466e
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 6 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,11 @@ jobs:
#
# As of meson 0.47.0 -Dopt= and -Dopt=[] both pass an empty list,
# before this -Dopt= would pass a list with an empty string.
meson setup -Ddoc_builders=[] \
--prefix=$MINGW_PREFIX \
--datadir=$MINGW_PREFIX/share \
--sysconfdir=$MINGW_PREFIX/etc \
meson setup \
-Ddoc_builders=[] \
--prefix=$MINGW_PREFIX \
--datadir=$MINGW_PREFIX/share \
--sysconfdir=$MINGW_PREFIX/etc \
builddir;
ninja -C builddir;
- name: Install
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/pack-debian.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash
set -ex
# Silence all safe.directory errors:
# fatal: detected dubious ownership in repository at '/__w/srain/srain'
git config --global --add safe.directory '*';
# Fetch all tags.
git fetch origin +refs/tags/*:refs/tags/*;
git tag;
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/pack-mingw64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ mingw64_dlls+=$ret
get_dll $gdbus
mingw64_dlls+=$ret

# helper program to open browser link
help_program=$prefix/bin/gspawn-win64-helper.exe

mingw64_dlls=$(echo $mingw64_dlls | tr ' ' '\n' | sort -u)

mkdir -pv $dst_bin
Expand All @@ -65,6 +68,7 @@ touch $dst_bin/srain.cfg
echo 'Finished installing Srain'

cp -rfv $gdbus $dst_bin/
cp -rfv $help_program $dst_bin/
cp -rfv $mingw64_dlls $dst_bin/
cp -rfv $prefix/lib/gio $dst_lib/
cp -rfv $prefix/lib/gdk-pixbuf-2.0 $dst_lib/
Expand Down
7 changes: 5 additions & 2 deletions src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,11 @@ incdirs = [
include_directories('sui'),
]

executable(app_exec, srcs,
executable(
app_exec, srcs,
include_directories: incdirs,
dependencies: deps,
install: true,
install_dir: bin_dir)
install_dir: bin_dir,
gui_app: true
)

0 comments on commit 74d466e

Please sign in to comment.