Skip to content

Commit

Permalink
Attempt to fix downloads and rearrange modpack file structure
Browse files Browse the repository at this point in the history
  • Loading branch information
nikkiwritescode committed Feb 13, 2024
1 parent c7350b5 commit 2865ff4
Show file tree
Hide file tree
Showing 20 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/modpack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@ jobs:
for d in _modpacks/*/* ; do
modpack_id=$(jq -r "keys[0]" $d/manifest.json)
resource_name=$(jq -r ".$modpack_id.resources" $d/manifest.json)
resource_directory="_data/modpack_common_files/$resource_name"
resource_directory="_modpacks/$resource_name/resources"
echo "$resource_directory"
mkdir -p $d/$modpack_id
cp "_data/backgrounds.yml" $d/$modpack_id/backgrounds.yml
cp -r $resource_directory/. $d/$modpack_id/
cp $d/manifest.json $build_dir/$modpack_id.json
cp $d/modlist.txt $d/mapList.yaml $d/manifest.json $d/$modpack_id/
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 6 additions & 2 deletions mapsTable.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ <h1 class="jumbotron-heading">Community Maps</h1>
</p>
</div>
</section>

<!--- Maps -->
<div class="album">
<div class="container-fluid">
Expand Down Expand Up @@ -99,10 +99,14 @@ <h1 class="jumbotron-heading">Community Maps</h1>
{%- capture frbFiles -%}
{{ map.frbFile1 }},{{map.frbFile2}}
{%- endcapture -%}
{%- else -%}
{%- elsif map.frbFile1 -%}
{%- capture frbFiles -%}
{{ map.frbFile1 }}
{%- endcapture -%}
{%- elsif map.frbFiles -%}
{%- capture frbFiles -%}
{{ map.frbFiles }}
{%- endcapture -%}
{%- endif -%}
{%- assign background = site.data.backgrounds | where: "background", map.background | first %}
<tr>
Expand Down

0 comments on commit 2865ff4

Please sign in to comment.