mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-12-01 21:03:00 +00:00
Compare commits
8 Commits
nightly-ta
...
nightly-ta
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eab832396b | ||
|
|
3bb7ba59ae | ||
|
|
b4e5fb7483 | ||
|
|
29d3a0f1dd | ||
|
|
1e413d034f | ||
|
|
5627634da1 | ||
|
|
719e7d42fd | ||
|
|
71d9fd1c87 |
28
.github/workflows/changelog.py
vendored
Normal file
28
.github/workflows/changelog.py
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
import os
|
||||
import re
|
||||
import sys
|
||||
|
||||
raw_git = os.popen('git log next --since="24 hours" --pretty=format:"- %h - {USERNAME}*+%al-%an*: %s"').read()
|
||||
|
||||
|
||||
def compute_username(line):
|
||||
stripped = re.search(r'(?<=\*)(.*?)(?=\*)', line).group(0)
|
||||
|
||||
pattern = re.compile("[$@+&?].*[$@+&?]")
|
||||
if pattern.match(stripped):
|
||||
stripped = re.sub("[$@+&?].*[$@+&?]", "", stripped)
|
||||
stripped = re.match(r'.+?(?=-)', stripped).group(0)
|
||||
else:
|
||||
stripped = re.sub(r'^.*?-', "", stripped)
|
||||
return "@" + stripped
|
||||
|
||||
|
||||
def compile_line(line):
|
||||
username = compute_username(line)
|
||||
line = re.sub(r'[*].*[*]', "", line)
|
||||
line = line.replace("{USERNAME}", username)
|
||||
return line
|
||||
|
||||
|
||||
for row in raw_git.splitlines():
|
||||
print(compile_line(row))
|
||||
20
.github/workflows/create_nightly_release.yml
vendored
20
.github/workflows/create_nightly_release.yml
vendored
@@ -35,6 +35,7 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@master
|
||||
with:
|
||||
fetch-depth: 0
|
||||
ref: next
|
||||
submodules: true
|
||||
- name: Git Sumbodule Update
|
||||
@@ -52,6 +53,14 @@ jobs:
|
||||
- name: Create SD Card ZIP
|
||||
run: |
|
||||
zip -r sdcard.zip sdcard
|
||||
- name: Create changelog
|
||||
run: |
|
||||
CHANGELOG=$(python3 .github/workflows/changelog.py)
|
||||
CHANGELOG="${CHANGELOG//'%'/'%25'}"
|
||||
CHANGELOG="${CHANGELOG//$'\n'/'%0A'}"
|
||||
CHANGELOG="${CHANGELOG//$'\r'/'%0D'}"
|
||||
echo "::set-output name=content::$CHANGELOG"
|
||||
id: changelog
|
||||
- name: Create Release
|
||||
id: create_release
|
||||
uses: actions/create-release@v1
|
||||
@@ -59,12 +68,13 @@ jobs:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
tag_name: nightly-tag-${{ steps.date.outputs.date }}
|
||||
release_name: Nightly-release - ${{ steps.date.outputs.date }}
|
||||
release_name: Nightly Release - ${{ steps.date.outputs.date }}
|
||||
body: |
|
||||
**Nightly release - ${{ steps.date.outputs.date }}**
|
||||
This build is the latest and greatest, although may not be the most stable as this is a nightly release.
|
||||
Version: ${{ steps.version_date.outputs.date }}
|
||||
You can find the changes in this commit ${{ github.sha }}
|
||||
## Release notes
|
||||
### Revision (${{ steps.version_date.outputs.date }}):
|
||||
${{ steps.changelog.outputs.content }}
|
||||
draft: false
|
||||
prerelease: true
|
||||
- name: Upload Firmware Asset
|
||||
@@ -85,5 +95,5 @@ jobs:
|
||||
with:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||
asset_path: ./sdcard.zip
|
||||
asset_name: mayhem_nightly_${{ steps.date.outputs.date }}_COPY_TO_SDCARD.zip
|
||||
asset_content_type: application/zip
|
||||
asset_name: mayhem_nightly_${{ steps.version_date.outputs.date }}_COPY_TO_SDCARD.zip
|
||||
asset_content_type: application/zip
|
||||
2
flashing/Check for firmware updates.url
Normal file
2
flashing/Check for firmware updates.url
Normal file
@@ -0,0 +1,2 @@
|
||||
[InternetShortcut]
|
||||
URL=https://github.com/eried/portapack-mayhem/releases
|
||||
2
flashing/How to update the firmware.url
Normal file
2
flashing/How to update the firmware.url
Normal file
@@ -0,0 +1,2 @@
|
||||
[InternetShortcut]
|
||||
URL=https://github.com/eried/portapack-mayhem/wiki/Update-firmware
|
||||
1
flashing/README.txt
Normal file
1
flashing/README.txt
Normal file
@@ -0,0 +1 @@
|
||||
Plug HackRF+Portapack, set it in HackRF mode, launch flash_portapack_mayhem.bat
|
||||
19
flashing/dfu_hackrf_one.bat
Normal file
19
flashing/dfu_hackrf_one.bat
Normal file
@@ -0,0 +1,19 @@
|
||||
@echo off
|
||||
|
||||
echo *** Run HackRF firmware in RAM via LPC DFU ***
|
||||
echo.
|
||||
echo This is used to "unbrick" your HackRF, if you are no longer able to use
|
||||
echo HackRF tools to flash or operate your HackRF.
|
||||
echo.
|
||||
echo Connect your HackRF One to a USB port on your computer.
|
||||
echo.
|
||||
echo Hold down both the DFU and RESET buttons on the HackRF.
|
||||
echo Then release the RESET button (closest to the edge).
|
||||
echo Then release the DFU button.
|
||||
echo.
|
||||
pause
|
||||
|
||||
echo.
|
||||
dfu-util-static.exe --device 1fc9:000c --download hackrf_one_usb.dfu --reset
|
||||
echo.
|
||||
pause
|
||||
7
flashing/driver/dpinst.xml
Normal file
7
flashing/driver/dpinst.xml
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" ?>
|
||||
<dpinst>
|
||||
<deleteBinaries/>
|
||||
<installAllOrNone/>
|
||||
<suppressAddRemovePrograms/>
|
||||
<suppressWizard/>
|
||||
</dpinst>
|
||||
BIN
flashing/driver/hackrf_one.inf
Normal file
BIN
flashing/driver/hackrf_one.inf
Normal file
Binary file not shown.
BIN
flashing/driver/hackrf_one_amd64.cat
Normal file
BIN
flashing/driver/hackrf_one_amd64.cat
Normal file
Binary file not shown.
BIN
flashing/driver/lpc_dfu.inf
Normal file
BIN
flashing/driver/lpc_dfu.inf
Normal file
Binary file not shown.
BIN
flashing/driver/lpc_dfu_amd64.cat
Normal file
BIN
flashing/driver/lpc_dfu_amd64.cat
Normal file
Binary file not shown.
15
flashing/flash_hackrf_one.bat
Normal file
15
flashing/flash_hackrf_one.bat
Normal file
@@ -0,0 +1,15 @@
|
||||
@echo off
|
||||
|
||||
echo *** Re-flash the HackRF with HackRF firmware ***
|
||||
echo.
|
||||
echo Connect your HackRF One to a USB port on your computer.
|
||||
echo.
|
||||
echo If using a PortaPack, put the PortaPack in HackRF mode by selecting
|
||||
echo the "HackRF" option from the main menu.
|
||||
echo.
|
||||
pause
|
||||
|
||||
echo.
|
||||
hackrf_update.exe hackrf_one_usb.bin
|
||||
echo.
|
||||
pause
|
||||
15
flashing/flash_portapack_mayhem.bat
Normal file
15
flashing/flash_portapack_mayhem.bat
Normal file
@@ -0,0 +1,15 @@
|
||||
@echo off
|
||||
|
||||
echo *** Re-flash the HackRF with PortaPack firmware ***
|
||||
echo.
|
||||
echo Connect your HackRF One to a USB port on your computer.
|
||||
echo.
|
||||
echo If using a PortaPack, put the PortaPack in HackRF mode by selecting
|
||||
echo the "HackRF" option from the main menu.
|
||||
echo.
|
||||
pause
|
||||
|
||||
echo.
|
||||
hackrf_update.exe portapack-h1_h2-mayhem.bin
|
||||
echo.
|
||||
pause
|
||||
BIN
flashing/hackrf_one_usb.bin
Normal file
BIN
flashing/hackrf_one_usb.bin
Normal file
Binary file not shown.
BIN
flashing/hackrf_one_usb.dfu
Normal file
BIN
flashing/hackrf_one_usb.dfu
Normal file
Binary file not shown.
Reference in New Issue
Block a user