Why my build didn't include lighting?

I am making a 2d game. In my game i had a 2d global light and many free form lights in a scene. When i played it in the editor or game view it worked perfectly but when i built it out it wouldn’t have any lights. I was searching but didn’t find any thing that work. I tried to remove all the game qualities except for ultra and it still wouldn’t work. Why? How do i fix it? (i am currently using Unity 2019.3.12f1)

Ps: I exported to windows 64bit

Hi mate. Which platform are you building for?

Okay i found out what went wrong. It was because there was a part of my script that would reset the material from “Sprites-lit-default” to “Sprites-default” when build the project.