Programmatically copy files into PowerApp "Web Files" gallery - powershell

I have a few css and js files produced by a React App build process - I need these files for my PowerApp app.
For now, I am copying these manually but wondering if this can be automated through PowerShell or other script?

Related

How do I save files downloaded in my app to Downloads folder in Files app in Swift 4.2?

Is it possible to save the files downloaded from my app to be stored in the Downloads folder in Files App?
I am successful in creating my app folder in "On My iPhone" in Files and saving the files there.
However, my requirement is to save it in the Downloads folder in Files.
Is this possible? If so, how do I achieve this?

SAPUI5 deploy application with binary files MIMES

I'm currently building an app with some binary files (jpeg, mp3 ...).
When I upload my app on the gateway system, the binaries are uploaded in a "MIMES" folder.
How can I access those files from SAPUI5 ?
I placed all my binaries (PNG images in my case) into a separate folder /png under webapp folder in Web IDE and in controller onInit event I calculate the path like this ("hcm.myleaverequest.ESSLeaveReqExt" is my app id):
this._sPNGpath = $.sap.getModulePath("hcm.myleaverequest.ESSLeaveReqExt", "/png");
and also store this path in a local JSON model ViewSettings to make it possible use it in binding expressions. Something like this:
icon="{ViewSettings>/PNGPath}/mylogo.png"
Such an arrangement works fine for me after deploying to the SAP gateway.
Update for MP3 files:
It appears Web IDE can't import MP3 file as binary, it always formats it thinking it's a text file. However, if you change the file extension to png you can load the file into a project folder. After that you can play the file by standard tag using sap.ui.core.HTML control:
<core:HTML content='<audio controls><source src="{ViewSettings>/PNGPath}/old_telephone_ringing_copy.png" type="audio/mpeg"></audio>'>
Most probably it would work after deployment (I didn't try it though)

Packaging SF service into a single file

I am working through how to automate the build and deploy of my Service Fabric app. Currently I'm working on the package step and while it is creating files within the pkg subfolder it is always creating a folder hierarchy of files, not a true package in a single file. I would swear I've seem a .SFPKG file (or something similarly named) that has everything in one file (a zip maybe?). Is there some way to to create such a file with msbuild?
Here's the command line I'm using currently:
msbuild myservice.sfproj "/p:Configuration=Dev;Platform=AnyCPU" /t:Package /consoleloggerparameters:verbosity=minimal /maxcpucount
I'm concerned about not having a single file because it seems inefficient in sending a new package up to my clusters, and it's harder for me to manage a bunch of files on a build automation server.
I believe you read about the .sfpkg at
https://azure.microsoft.com/documentation/articles/service-fabric-get-started-with-a-local-cluster
Note that internally we do not yet support provisioning a .sfpkg file. This is a feature that will be coming in soon (date TBD). Instead, we upload each file in the application package.
Update (SF 6.1 - April 2018)
Since 6.1 it is possible to create a ZIP file (*.sfpkg) and upload it to an external store. Service Fabric executes a GET operation to download the sfpkg application package. For more infos see https://learn.microsoft.com/en-us/azure/service-fabric/service-fabric-package-apps#create-an-sfpkg
NOTE: This only works with external provisioning, the Azure image store still doesn't support sfpkg files.

Can an activex control be launched from a local html file?

Is a web server required for executing an activeX control?
Could the html calling the .dll files be off server?
Could you distribute the cab file and the html file and simply ask another user to run the cab and then launch the html file in a browser?

Deploy Click once as a single file?

I am looking to use click once to deploy an application for internal use, When publishing to the network share it creates several files and folders. (manifest, ApplicationFiles etc)
Is there a way to bundle this up as a single file, I do not fancy the idea of allowing other users access to the application Files folder that is created, I would rather just give them the exe and have it take care of everything else.
Does anyone have experience with this, or am I stuck with the application Folder, Application Manifest, and setup file all being in the same directory for installation.
There is not a way to package the whole application folder and files into one file, like an MSI with ClickOnce.
You could code something on your own to have a shell app that use ClickOnce and its only file would be your app compressed. The shell would download that compressed file to the client's machine and would unzip etc.
You could also InstallShield Limited Edition that comes with VS 2012/2013 in the Other Projects, Setup and Deployment but that does give you the ClickOnce easy of deployment features. You could use the InstallShield setup to be your compress file in your shell clickonce app and then just use Process.Start to launch the InstallShield setup. It should work.