mirror of
https://github.com/radareorg/r2flutter.git
synced 2026-11-09 04:19:32 -10:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2f53ba301d | ||
|
|
116aa82551 | ||
|
|
d80fa5bd2e |
No files matched your search
@@ -7,6 +7,8 @@ on:
|
||||
push:
|
||||
pull_request:
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
build-linux24:
|
||||
@@ -26,6 +28,14 @@ jobs:
|
||||
run: r2r test/db/cmd
|
||||
- name: Radare Extras Testing
|
||||
run: r2r test/db/extras
|
||||
- name: Package Linux build
|
||||
run: make -C dist/linux
|
||||
- name: Upload Linux package
|
||||
uses: actions/upload-artifact@v7
|
||||
with:
|
||||
name: r2flutter-linux-x86_64
|
||||
path: dist/linux/r2flutter-linux-x86_64.tar.gz
|
||||
if-no-files-found: error
|
||||
|
||||
meson-linux24:
|
||||
name: Meson build on Linux
|
||||
@@ -63,6 +73,43 @@ jobs:
|
||||
run: r2r test/db/cmd
|
||||
- name: Radare Extras Testing
|
||||
run: r2r test/db/extras
|
||||
- name: Package macOS build
|
||||
run: make -C dist/macos
|
||||
- name: Upload macOS package
|
||||
uses: actions/upload-artifact@v7
|
||||
with:
|
||||
name: r2flutter-macos
|
||||
path: dist/macos/r2flutter-macos.tar.gz
|
||||
if-no-files-found: error
|
||||
|
||||
build-windows:
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v7
|
||||
- uses: actions/setup-python@v7
|
||||
with:
|
||||
python-version: 3.14.x
|
||||
- name: Prepare MSVC toolchain
|
||||
uses: ilammy/msvc-dev-cmd@v1
|
||||
with:
|
||||
arch: x64
|
||||
- name: Install build tools
|
||||
shell: pwsh
|
||||
run: python -m pip install meson ninja
|
||||
- name: Install radare2 ${{ env.R2V }}
|
||||
uses: radareorg/github-actions@v3
|
||||
with:
|
||||
version: ${{ env.R2V }}
|
||||
from-git: false
|
||||
- name: Build and package r2flutter
|
||||
shell: pwsh
|
||||
run: ./dist/windows/build.ps1
|
||||
- name: Upload Windows package
|
||||
uses: actions/upload-artifact@v7
|
||||
with:
|
||||
name: r2flutter-windows-x86_64
|
||||
path: dist/windows/r2flutter-windows-x86_64.zip
|
||||
if-no-files-found: error
|
||||
|
||||
r2-xps:
|
||||
name: Build radare2 with r2flutter XPS
|
||||
@@ -87,3 +134,70 @@ jobs:
|
||||
run: |
|
||||
r2 -q -c 'Lc~r2flutter' -- | grep r2flutter
|
||||
r2 -q -c 'r2flutter -V' -- | grep 'r2flutter '
|
||||
|
||||
check-release:
|
||||
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') }}
|
||||
needs:
|
||||
- build-linux24
|
||||
- meson-linux24
|
||||
- build-macos
|
||||
- build-windows
|
||||
- r2-xps
|
||||
runs-on: ubuntu-24.04
|
||||
outputs:
|
||||
is_release: ${{ steps.tag.outputs.is_release }}
|
||||
steps:
|
||||
- name: Check release tag
|
||||
id: tag
|
||||
shell: bash
|
||||
run: |
|
||||
if [[ "${GITHUB_REF_NAME}" =~ ^[0-9] ]]; then
|
||||
echo "is_release=yes" >> "$GITHUB_OUTPUT"
|
||||
else
|
||||
echo "is_release=no" >> "$GITHUB_OUTPUT"
|
||||
fi
|
||||
|
||||
release:
|
||||
if: ${{ needs.check-release.outputs.is_release == 'yes' }}
|
||||
needs: check-release
|
||||
runs-on: ubuntu-24.04
|
||||
steps:
|
||||
- uses: actions/checkout@v7
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Prepare release notes
|
||||
shell: bash
|
||||
run: |
|
||||
tag="${GITHUB_REF_NAME}"
|
||||
previous_tag="$(git tag --merged "${tag}^" --sort=-version:refname | awk '/^[0-9]/{print; exit}')"
|
||||
{
|
||||
echo "# ${tag}"
|
||||
echo
|
||||
if [ -n "${previous_tag}" ]; then
|
||||
echo "## Changes since ${previous_tag}"
|
||||
echo
|
||||
git log --pretty=format:'- %s (%h)' "${previous_tag}..${tag}"
|
||||
else
|
||||
echo "## Changes"
|
||||
echo
|
||||
git log --pretty=format:'- %s (%h)' "${tag}"
|
||||
fi
|
||||
echo
|
||||
} > RELEASE_NOTES.md
|
||||
- name: Download release artifacts
|
||||
uses: actions/download-artifact@v8
|
||||
with:
|
||||
path: release-artifacts
|
||||
- name: Create GitHub release
|
||||
uses: softprops/action-gh-release@v3
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
tag_name: ${{ github.ref_name }}
|
||||
name: ${{ github.ref_name }}
|
||||
body_path: RELEASE_NOTES.md
|
||||
generate_release_notes: false
|
||||
files: |
|
||||
release-artifacts/r2flutter-linux-x86_64/r2flutter-linux-x86_64.tar.gz
|
||||
release-artifacts/r2flutter-macos/r2flutter-macos.tar.gz
|
||||
release-artifacts/r2flutter-windows-x86_64/r2flutter-windows-x86_64.zip
|
||||
@@ -127,12 +127,12 @@ done
|
||||
: ${INSTALL_PROGRAM_STRIP:=${INSTALL} -m 755 -s}
|
||||
: ${INSTALL_MAN:=${INSTALL} -m 444}
|
||||
: ${INSTALL_LIB:=${INSTALL} -m 755 -c}
|
||||
PKGNAME='r2flutter' ; VERSION='0.3.0' ; VERSION_MAJOR=0; VERSION_MINOR=3; VERSION_PATCH=0; VERSION_NUMBER=00300; CONTACT_MAIL="[email protected]" ; CONTACT_NAME="pancake" ; CONTACT="pancake <[email protected]>" ;
|
||||
PKGNAME='r2flutter' ; VERSION='0.3.2' ; VERSION_MAJOR=0; VERSION_MINOR=3; VERSION_PATCH=2; VERSION_NUMBER=00302; CONTACT_MAIL="[email protected]" ; CONTACT_NAME="pancake" ; CONTACT="pancake <[email protected]>" ;
|
||||
}
|
||||
|
||||
show_usage() {
|
||||
cat <<EOF2
|
||||
'configure' configures r2flutter-0.3.0 to adapt to many kinds of systems.
|
||||
'configure' configures r2flutter-0.3.2 to adapt to many kinds of systems.
|
||||
|
||||
Usage: ./configure [OPTION]... [VAR=VALUE]...
|
||||
|
||||
@@ -214,10 +214,10 @@ ocho() {
|
||||
|
||||
show_version() {
|
||||
if [ "$QUIET" = 1 ]; then
|
||||
echo "0.3.0"
|
||||
echo "0.3.2"
|
||||
exit 0
|
||||
fi
|
||||
echo "r2flutter-0.3.0 configuration script done with acr v2.2.8.
|
||||
echo "r2flutter-0.3.2 configuration script done with acr v2.2.8.
|
||||
The 'Free Software Foundation' message is only for autodetection.
|
||||
Originally written by pancake <nopcode.org>."
|
||||
exit 0
|
||||
@@ -246,7 +246,7 @@ case $flag in
|
||||
show_version ; ;;
|
||||
-r|--r|--report)
|
||||
echo "PKGNAME: r2flutter"
|
||||
echo "VERSION: 0.3.0"
|
||||
echo "VERSION: 0.3.2"
|
||||
echo "AUTHOR: pancake"
|
||||
echo "EMAIL: [email protected]"
|
||||
echo "LANGS: c"
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
PKGNAME r2flutter
|
||||
VERSION 0.3.0
|
||||
VERSION 0.3.2
|
||||
CONTACT pancake ; [email protected]
|
||||
|
||||
LANG_C!
|
||||
|
||||
Vendored
+14
@@ -0,0 +1,14 @@
|
||||
ROOT := $(CURDIR)/r2flutter-linux-x86_64
|
||||
ARCHIVE := $(CURDIR)/r2flutter-linux-x86_64.tar.gz
|
||||
|
||||
all:
|
||||
rm -rf $(ROOT) $(ARCHIVE)
|
||||
mkdir -p $(ROOT)/bin $(ROOT)/plugins
|
||||
cp ../../bin/r2flutter $(ROOT)/bin/
|
||||
cp ../../src/r2/core_flutter.so $(ROOT)/plugins/
|
||||
tar -C $(CURDIR) -czf $(ARCHIVE) r2flutter-linux-x86_64
|
||||
|
||||
clean:
|
||||
rm -rf $(ROOT) $(ARCHIVE)
|
||||
|
||||
.PHONY: all clean
|
||||
Vendored
+14
@@ -0,0 +1,14 @@
|
||||
ROOT := $(CURDIR)/r2flutter-macos
|
||||
ARCHIVE := $(CURDIR)/r2flutter-macos.tar.gz
|
||||
|
||||
all:
|
||||
rm -rf $(ROOT) $(ARCHIVE)
|
||||
mkdir -p $(ROOT)/bin $(ROOT)/plugins
|
||||
cp ../../bin/r2flutter $(ROOT)/bin/
|
||||
cp ../../src/r2/core_flutter.dylib $(ROOT)/plugins/
|
||||
tar -C $(CURDIR) -czf $(ARCHIVE) r2flutter-macos
|
||||
|
||||
clean:
|
||||
rm -rf $(ROOT) $(ARCHIVE)
|
||||
|
||||
.PHONY: all clean
|
||||
Vendored
+12
@@ -0,0 +1,12 @@
|
||||
$ErrorActionPreference = 'Stop'
|
||||
|
||||
meson setup build-windows --buildtype=release
|
||||
meson compile -C build-windows
|
||||
|
||||
$root = 'dist/windows/r2flutter-windows-x86_64'
|
||||
$archive = 'dist/windows/r2flutter-windows-x86_64.zip'
|
||||
Remove-Item -Recurse -Force $root -ErrorAction SilentlyContinue
|
||||
Remove-Item -Force $archive -ErrorAction SilentlyContinue
|
||||
New-Item -ItemType Directory -Force $root | Out-Null
|
||||
Copy-Item build-windows/r2flutter.exe $root/
|
||||
Compress-Archive -Path $root -DestinationPath $archive -Force
|
||||
@@ -1,9 +1,9 @@
|
||||
#ifndef R2FLUTTER_VERSION_H
|
||||
#define R2FLUTTER_VERSION_H
|
||||
|
||||
#define R2FLUTTER_VERSION "0.3.0"
|
||||
#define R2FLUTTER_VERSION "0.3.2"
|
||||
#define R2FLUTTER_VERSION_MAJOR 0
|
||||
#define R2FLUTTER_VERSION_MINOR 3
|
||||
#define R2FLUTTER_VERSION_PATCH 0
|
||||
#define R2FLUTTER_VERSION_PATCH 2
|
||||
|
||||
#endif
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
project(
|
||||
'r2flutter',
|
||||
'c',
|
||||
version : '0.3.0',
|
||||
version : '0.3.2',
|
||||
meson_version : '>=0.55.0',
|
||||
default_options : ['warning_level=2', 'werror=false']
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user