Skip to content

Commit

Permalink
Changed extension name to 'Scratch Radio' and included MyriadRF logo.
Browse files Browse the repository at this point in the history
  • Loading branch information
zynaptic committed Mar 18, 2018
1 parent 72f9a1c commit 4650f27
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#
BUILD_DIR = MyriadRF-Build
SCRATCH_EXT_DIR = /usr/lib/scratch2/scratch_extensions
SCRATCH_IMG_DIR = /usr/lib/scratch2/medialibrarythumbnails

# Make everything by default.
all: LimeSuite LuaRadio ScratchRadio
Expand All @@ -21,6 +22,7 @@ uninstall:
sudo rm -f $(SCRATCH_EXT_DIR)/luaRadioDriver.lua
sudo rm -f $(SCRATCH_EXT_DIR)/luaradio.html
sudo rm -f $(SCRATCH_EXT_DIR)/start_lua_radio.sh
sudo rm -f $(SCRATCH_IMG_DIR)/myriadrf.png
# Make sure we only unpatch this file once!
if grep luaRadioExtension $(SCRATCH_EXT_DIR)/extensions.json > /dev/null; \
then sudo patch -R -b $(SCRATCH_EXT_DIR)/extensions.json patches/scratch_extensions.patch; \
Expand All @@ -33,7 +35,8 @@ LimeSuite: /usr/local/bin/LimeUtil
ScratchRadio: $(SCRATCH_EXT_DIR)/luaRadioExtension.js \
$(SCRATCH_EXT_DIR)/luaRadioDriver.lua \
$(SCRATCH_EXT_DIR)/luaradio.html \
$(SCRATCH_EXT_DIR)/start_lua_radio.sh
$(SCRATCH_EXT_DIR)/start_lua_radio.sh \
$(SCRATCH_IMG_DIR)/myriadrf.png
# Make sure we only patch this file once!
if ! grep luaRadioExtension $(SCRATCH_EXT_DIR)/extensions.json > /dev/null; \
then sudo patch -b $(SCRATCH_EXT_DIR)/extensions.json patches/scratch_extensions.patch; \
Expand All @@ -48,6 +51,8 @@ $(SCRATCH_EXT_DIR)/luaradio.html : scratch2/extensions/luaradio.html
sudo cp $< $@
$(SCRATCH_EXT_DIR)/start_lua_radio.sh : scripts/start_lua_radio.sh
sudo chmod +x $<; sudo cp $< $@
$(SCRATCH_IMG_DIR)/myriadrf.png : images/myriadrf.png
sudo cp $< $@

# Install LuaRadio.
/usr/local/bin/luaradio: $(BUILD_DIR)/luaradio/embed/build/libluaradio.a
Expand Down
Binary file added images/myriadrf.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion patches/scratch_extensions.patch
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
{ "name":"Pi GPIO", "type":"extension", "file":"piGPIOExtension.js", "md5":"pigpio.png", "url":"file:///usr/lib/scratch2/scratch_extensions/gpio.html", "tags":["hardware"] },
-{ "name":"Pi SenseHAT", "type":"extension", "file":"piSenseHATExtension.js", "md5":"pisensehat.png", "url":"file:///usr/lib/scratch2/scratch_extensions/sensehat.html", "tags":["hardware"] }
+{ "name":"Pi SenseHAT", "type":"extension", "file":"piSenseHATExtension.js", "md5":"pisensehat.png", "url":"file:///usr/lib/scratch2/scratch_extensions/sensehat.html", "tags":["hardware"] },
+{ "name":"Lua Radio Control", "type":"extension", "file":"luaRadioExtension.js", "md5":"luaradio.png", "url":"file:///usr/lib/scratch2/scratch_extensions/luaradio.html", "tags":["hardware"] }
+{ "name":"Scratch Radio", "type":"extension", "file":"luaRadioExtension.js", "md5":"myriadrf.png", "url":"file:///usr/lib/scratch2/scratch_extensions/luaradio.html", "tags":["hardware"] }
]

0 comments on commit 4650f27

Please sign in to comment.