Skip to content

Commit

Permalink
build: app_bundle: use file dates of mrview/shview for app bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
maxpietsch committed Feb 1, 2021
1 parent d92f893 commit 287ba4a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions build
Original file line number Diff line number Diff line change
Expand Up @@ -1367,8 +1367,9 @@ while [[ -L "${f}" ]]; do
done
f=$(dirname "${f}")
"${f}"/MRView.app/Contents/MacOS/mrview "$@"''')
stat = os.stat(os.path.join('bin','MRView.app','Contents','MacOS','mrview'))
os.chmod(os.path.join('bin','mrview'), 0o755)
os.utime(os.path.join('bin','mrview'),(1609459200,1609459200))
os.utime(os.path.join('bin','mrview'), ns=(stat.st_atime_ns, stat.st_mtime_ns))

shutil.rmtree(os.path.join('bin','SHView.app'),ignore_errors=True)

Expand All @@ -1391,8 +1392,9 @@ while [[ -L "${f}" ]]; do
done
f=$(dirname "${f}")
"${f}"/SHView.app/Contents/MacOS/shview "$@"''')
stat = os.stat(os.path.join('bin','SHView.app','Contents','MacOS','shview'))
os.chmod(os.path.join('bin','shview'), 0o755)
os.utime(os.path.join('bin','shview'),(1609459200,1609459200))
os.utime(os.path.join('bin','shview'), ns=(stat.st_atime_ns, stat.st_mtime_ns))

###########################################################################
# SCRIPT VERSION #
Expand Down

0 comments on commit 287ba4a

Please sign in to comment.