惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Apple Machine Learning Research
Apple Machine Learning Research
Jina AI
Jina AI
博客园_首页
WordPress大学
WordPress大学
罗磊的独立博客
小众软件
小众软件
Last Week in AI
Last Week in AI
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Hugging Face - Blog
Hugging Face - Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
爱范儿
爱范儿
The Cloudflare Blog
GbyAI
GbyAI
C
Check Point Blog
腾讯CDC
MyScale Blog
MyScale Blog
有赞技术团队
有赞技术团队
博客园 - 聂微东
IT之家
IT之家
雷峰网
雷峰网
H
Help Net Security
博客园 - 叶小钗
美团技术团队
D
DataBreaches.Net

René de Hesselle activity

c6be9d66bf149539e53e40bf8656e292129ff8a5 to 8e4b287699a45c75de0a97a9844b1c081c254c00 · FA / siril_macos · GitLab Commits · v1.6 · René de Hesselle / jhb · GitLab Update macOS dependencies (2834ca64) · Commits · FA / Siril · GitLab Remove obsolete gtk4 build option (8e4b2876) · Commits · FA / siril_macos · GitLab Update macOS dependencies (cfebd4b0) · Commits · FA / Siril · GitLab Update jhb to 1.6 (c0e7ba35) · Commits · FA / siril_macos · GitLab Commits · v1.7.0+85 · René de Hesselle / cherrytree_macos · GitLab Update CherryTree to 1.7.0 (894aaf46) · Commits · René de Hesselle / cherrytree_macos · GitLab 835d265db4697a2fb3f19e3e844f75d8e232c39d to 894aaf46d9865f94f10a15713f371052fb9c33d3 · René de Hesselle / cherrytree_macos · GitLab Update macOS dependencies (1545425c) · Commits · FA / Siril · GitLab d30ac4bc11e41a5e3dfa911253166d6055d23a5a to e0b86dd5f45281c0524a3203306f206dc738e876 · FA / siril_macos · GitLab Remove download_dmg functionality (1028676b) · Commits · René de Hesselle / jhb · GitLab Remove GTK3 from the build system, POTFILES, code etc. (!1044) · Merge requests · FA / Siril · GitLab Update macOS dependencies (a666ceb3) · Commits · FA / Siril · GitLab Update macOS dependencies (3123b969) · Commits · FA / Siril · GitLab 825c80a8fa9c96bbc8aad89446cf926adb62ab32 to 1e893a88e70a1535d79d60f5d70de351c5e1fc09 · René de Hesselle / jhb · GitLab Fix dcomp.dll dependency error for GitLab Windows fleet (!7966) · Merge requests · Inkscape / inkscape · GitLab fd3bfab4cd2125ac08fd99af24a5f649bcf0058d to f442e27371d472a1de55c2f71adfe59b588fb0d9 · René de Hesselle / inkscape · GitLab René de Hesselle pushed new project tag v0.6.1+33 at René de Hesselle / gitte_macos Update Gitte 0.6.1 (b34bf4bd) · Commits · René de Hesselle / gitte_macos · GitLab René de Hesselle pushed to project branch main at René de Hesselle / gitte_macos Commits · v0.6.0+31 · René de Hesselle / gitte_macos · GitLab Fix cleanup versoin directory for Intel CI (6e017e4e) · Commits · René de Hesselle / gitte_macos · GitLab Update jhb to 1.5 (e63799e7) · Commits · René de Hesselle / gitte_macos · GitLab Commits · v0.5.0+28 · René de Hesselle / gitte_macos · GitLab Fix ccache configuration (825c80a8) · Commits · René de Hesselle / jhb · GitLab Commits · v1.5 · René de Hesselle / jhb · GitLab 0736ea0cefc23b46b6d0a3366cb4a297884c0999 to e63799e7a9a254e6fb1a32454ab6eb6fc86a2a3c · René de Hesselle / gitte_macos · GitLab Commits · v0.5.0+24 · René de Hesselle / gitte_macos · GitLab 85400872d1e15634bc587d97f1061c6a521dbce3 to 0736ea0cefc23b46b6d0a3366cb4a297884c0999 · René de Hesselle / gitte_macos · GitLab
Remove download_dmg functionality (f72e116d) · Commits · ...
René de Hess · 2026-06-12 · via René de Hesselle activity
Original line number Diff line number Diff line
@@ -13,7 +13,8 @@

### variables ##################################################################

RELEASE_ARCHIVE=${RELEASE_ARCHIVE:-$(basename "$DIR_VERSION")_$(uname -m).tar.xz}
RELEASE_ARCHIVE=${RELEASE_ARCHIVE:-$(\
  basename "$DIR_VERSION")_$(uname -m).tar.xz}

# The canonical source for releases is GitLab.
RELEASE_URL="https://gitlab.com/api/v4/projects/35965804/packages/generic/jhb/\
@@ -21,21 +22,7 @@ v$VERSION/$RELEASE_ARCHIVE"

### functions ##################################################################

function release_archive_get_name
{
  case "$RELEASE_ARCHIVE" in
    *.tar.xz)
      basename -s .tar.xz "$RELEASE_ARCHIVE"
      ;;
    *.dmg)
      basename -s .dmg "$RELEASE_ARCHIVE"
      ;;
    *)
      echo_e "unsupported RELEASE_ARCHIVE file type"
      echo "$RELEASE_ARCHIVE"
      ;;
  esac
}
# Nothing here.

### main #######################################################################

Original line number Diff line number Diff line
@@ -18,17 +18,15 @@ source "$(dirname "${BASH_SOURCE[0]}")"/../../etc/jhb.conf.sh

### variables ##################################################################

SHADOW_FILE_DIR=${SHADOW_FILE_DIR:-${CI_PROJECT_DIR:-$DIR_WORK}}
ARCHIVE_DMG=${ARCHIVE_DMG:-$DIR_ARTIFACT/$(\
  basename -s .tar.xz "$RELEASE_ARCHIVE").dmg}

### functions ##################################################################

# shellcheck disable=SC2120 # optional arguments
function create_tar
{
  local suffix=$1 # optional

  local file
  file=$DIR_ARTIFACT/$(release_archive_get_name)$suffix.tar.xz
  file=$DIR_ARTIFACT/$RELEASE_ARCHIVE

  echo_i "creating $file"

@@ -43,12 +41,8 @@ function create_tar
  echo "$file"
}

# shellcheck disable=SC2120 # optional arguments
function create_dmg
{
  local file
  file=$DIR_ARTIFACT/$(release_archive_get_name).dmg

  ( # create dmg
    local vol_name
    vol_name=$(basename "$DIR_VERSION")
@@ -60,25 +54,22 @@ function create_dmg
      -size 16g \
      -srcfolder "$vol_name" \
      -volname "$vol_name" \
      "$file" \
      "$ARCHIVE_DMG" \
      >/dev/null
  )

  ( # create and print checksum
    cd "$(dirname "$file")" || exit 1
    shasum -a 256 "$(basename "$file")" >"$file".sha256
    echo_i "sha256 = $(awk '{ print $1 }' "$file".sha256)"
    cd "$(dirname "$ARCHIVE_DMG")" || exit 1
    shasum -a 256 "$(basename "$ARCHIVE_DMG")" >"$ARCHIVE_DMG".sha256
    echo_i "sha256 = $(awk '{ print $1 }' "$ARCHIVE_DMG".sha256)"
  )

  echo "$file"
  echo "$ARCHIVE_DMG"
}

function mount_dmg
{
  local dmg
  dmg=$DIR_WORK/$(release_archive_get_name).dmg
  local shadow_file
  shadow_file=$SHADOW_FILE_DIR/$(basename "$dmg").shadow
  local shadow_file=$ARCHIVE_DMG.shadow

  if [ ! -d "$DIR_VERSION" ]; then
    mkdir -p "$DIR_VERSION"
@@ -89,8 +80,8 @@ function mount_dmg
    bzip2 -d "$shadow_file".bz2
  fi

  echo_i "mounting $(basename "$dmg")"
  hdiutil mount "$dmg" \
  echo_i "mounting $(basename "$ARCHIVE_DMG")"
  hdiutil mount "$ARCHIVE_DMG" \
    -mountPoint "$DIR_VERSION" \
    -shadow "$shadow_file"
}
@@ -99,14 +90,11 @@ function unmount_dmg
{
  local keep_shadow_file=$1

  local dmg
  dmg=$DIR_WORK/$(release_archive_get_name).dmg
  local shadow_file
  shadow_file=$SHADOW_FILE_DIR/$(basename "$dmg").shadow
  local shadow_file=$ARCHIVE_DMG.shadow

  if [ -f "$dmg" ]; then
  if [ -f "$ARCHIVE_DMG" ]; then
    local partition_uuid
    partition_uuid=$(hdiutil imageinfo "$dmg" |
    partition_uuid=$(hdiutil imageinfo "$ARCHIVE_DMG" |
        grep -A1 "partition-name: disk image" |
        grep UUID |
        awk '{ print $2 }')
@@ -140,41 +128,6 @@ function unmount_dmg
  fi
}

function download_dmg
{
  local partial_download=$DIR_WORK/${FUNCNAME[0]} # DIR_TMP not available yet
  # download (at least) 100 kb of data
  curl -L "$RELEASE_URL" 2>/dev/null | head -c 100000 >"$partial_download"
  # if we got 100 kb, it's not a "404 file not found"
  if [ "$(stat -f%z "$partial_download")" -eq 100000 ]; then
    echo_i "downloading $RELEASE_URL"
    curl -o "$DIR_WORK/$RELEASE_ARCHIVE" -L -C - "$RELEASE_URL"
  fi

  rm "$partial_download"
}

function install_dmg
{
  local dmg
  dmg=$DIR_WORK/$(release_archive_get_name).dmg

  # download and mount read-only disk image
  if [ -f "$dmg" ]; then
    echo_i "using $dmg"
  else
    download_dmg
  fi
  mount_dmg
}

function uninstall_dmg
{
  local keep_shadow_file=$1   # optional

  unmount_dmg "$keep_shadow_file"
}

function remove_nonessential_files
{
  local additional_dirs=$1  # optional
@@ -218,19 +171,19 @@ function main
      create_dmg
      ;;
    create_tar)
      create_tar "$option" # option: add suffix to archive, default is none
      create_tar
      ;;
    install_dmg)
      install_dmg
    mount_dmg)
      mount_dmg
      ;;
    uninstall_dmg)
      uninstall_dmg "$option"
    unmount_dmg)
      unmount_dmg "$option" # option: keep shadow file or not
      ;;
    remove_nonessentials)
      remove_nonessential_files "$option" # option: additional dirs to clean up
      ;;
    *)
      echo_e "usage: $0 {create_dmg|create_tar|install_dmg|uninstall_dmg|\
      echo_e "usage: $0 {create_dmg|create_tar|mount_dmg|unmount_dmg|\
remove_nonessentials}"
      ;;
  esac