Skip to content

Commit

Permalink
fetch upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
Luki120 committed Nov 23, 2022
2 parents c157662 + 022f31f commit 7f330ef
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ios/application/NIC/control
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name "iphone/application_modern"
name "iphone/application"
constrain "control" to package
constrain "theos" to link_theos
prompt CLASSPREFIX "Class name prefix (two or more characters)" "XX"
2 changes: 2 additions & 0 deletions ios/control_center_module-11up/NIC/control
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
name "iphone/control_center_module-11up"
constrain "control" to package
constrain "theos" to link_theos
2 changes: 1 addition & 1 deletion ios/theme/NIC/control
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
name "iphone/theme"
constrain file "control" to package
constrain "control" to package
constrain "theos" to link_theos
Empty file.
Binary file not shown.
Binary file modified iphone_control_center_module-11up.nic.tar
Binary file not shown.
Binary file modified iphone_theme.nic.tar
Binary file not shown.
14 changes: 11 additions & 3 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,24 @@

./build.sh

if [[ -d build ]]; then
rm -r build
fi

mkdir -p build
pushd build &> /dev/null

# For each NIC template
for n in ../*.nic.tar; do
nicname=$(basename $n .nic.tar)
projname=${nicname#*_}"_example"
projname=${nicname#*_}
# Pkg names can't have anything other than alphanum and -+.
# Class names can't have anything other than alphanum
# So strip all but alphanum so projects that pull the project name compile
valid_projname=${projname//[^[:alnum:]]/}
# Initialize a project (and accept defaults for special fields)
echo | $THEOS/bin/nic.pl -p $nicname -n $projname -u X --nic $n
pushd ${projname/"-"/""} &> /dev/null
yes | $THEOS/bin/nic.pl -p $nicname -n $valid_projname -u X --nic $n
pushd $valid_projname &> /dev/null
# Build the project
make all
popd &> /dev/null
Expand Down

0 comments on commit 7f330ef

Please sign in to comment.