Skip to content

Commit

Permalink
chore: revert frida due to build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
blacktop committed Jun 4, 2024
1 parent 8ba55cc commit 3bd6fb9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cmd/ipsw/cmd/frida/frida.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
"github.com/spf13/viper"
)

const fridaVersion = "16.3.3"
const fridaVersion = "16.2.5"

func init() {
FridaCmd.PersistentFlags().StringP("udid", "u", "", "Device UniqueDeviceID to connect to")
Expand Down
12 changes: 7 additions & 5 deletions hack/make/frida-deps
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
#!/usr/bin/env bash

set -o errexit
set -o nounset
set -o pipefail
if [[ "${TRACE-0}" == "1" ]]; then
set -o xtrace
fi

FRIDA_VERSION=""
: ${FRIDA_VERSION:=""}

if [[ "${1-}" =~ ^-*h(elp)?$ ]]; then
echo 'Usage: hack/make/frida-deps
Expand All @@ -19,7 +18,9 @@ This script downloads and unpacks the latest frida-core-devkits for macOS.
fi

get_version() {
FRIDA_VERSION=$(gh release view --json tagName -q '.tagName' --repo frida/frida)
if [ -z ${FRIDA_VERSION} ]; then
FRIDA_VERSION=$(gh release view --json tagName -q '.tagName' --repo frida/frida)
fi
echo " [!] Updating to version: $FRIDA_VERSION"
}

Expand All @@ -30,16 +31,17 @@ change_version() {

update_frida() {
echo " [!] Updating frida-core-devkit (ARM64)"
gh release download --pattern 'frida-core-devkit-*-macos-arm64.tar.xz' --repo frida/frida --dir /tmp --skip-existing
gh release download $FRIDA_VERSION --pattern 'frida-core-devkit-*-macos-arm64.tar.xz' --repo frida/frida --dir /tmp --skip-existing
gunzip -c /tmp/frida-core-devkit-*-macos-arm64.tar.xz | tar -xf - -C /opt/homebrew/lib libfrida-core.a
gunzip -c /tmp/frida-core-devkit-*-macos-arm64.tar.xz | tar -xf - -C /opt/homebrew/include frida-core.h
echo " [!] Updating frida-core-devkit (x86_64)"
gh release download --pattern 'frida-core-devkit-*-macos-x86_64.tar.xz' --repo frida/frida --dir /tmp --skip-existing
gh release download $FRIDA_VERSION --pattern 'frida-core-devkit-*-macos-x86_64.tar.xz' --repo frida/frida --dir /tmp --skip-existing
gunzip -c /tmp/frida-core-devkit-*-macos-x86_64.tar.xz | tar -xf - -C /usr/local/homebrew/lib libfrida-core.a
gunzip -c /tmp/frida-core-devkit-*-macos-x86_64.tar.xz | tar -xf - -C /usr/local/homebrew/include frida-core.h
}

main() {
echo " 🚀 Starting..."
get_version
change_version
update_frida
Expand Down

0 comments on commit 3bd6fb9

Please sign in to comment.