Skip to content

Commit

Permalink
fix(web): .htaccess location and copy
Browse files Browse the repository at this point in the history
  • Loading branch information
berdal84 committed Jan 17, 2025
1 parent 644117a commit 9ba905a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 27 deletions.
15 changes: 0 additions & 15 deletions .htaccess

This file was deleted.

13 changes: 1 addition & 12 deletions rake/_utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ module TargetType
:cxx_flags,
:linker_flags,
:assets, # List of patterns like: "<source>" or "<source>:<destination>"
:assets_nopreload, # same but won't be included in the binary
keyword_init: true # If the optional keyword_init keyword argument is set to true, .new takes keyword arguments instead of normal arguments.
)

Expand All @@ -77,7 +76,6 @@ def new_empty_target(name, type)
target.cxx_flags = []
target.linker_flags = []
target.assets = FileList[]
target.assets_nopreload = FileList[]
target.defines = []
target.compiler_flags = []
target.link_library = []
Expand Down Expand Up @@ -218,16 +216,7 @@ def tasks_for_target(target)

desc "Compile #{target.name}"
task :build => get_binary(target) do

# Copy assets (in PLATFORM_WEB we skip this because we incorporate files as *.data)
if PLATFORM_DESKTOP
target.assets.each do |pattern|
copy_asset(pattern)
end
end

# Copy assets that must never be preloaded
target.assets_nopreload.each do |pattern|
target.assets.each do |pattern|
copy_asset(pattern)
end
end
Expand Down

0 comments on commit 9ba905a

Please sign in to comment.