forked from The-Powder-Toy/The-Powder-Toy
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
787 changed files
with
34,746 additions
and
31,671 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
set -euo pipefail | ||
IFS=$'\t\n' | ||
|
||
gh release create --draft --verify-tag --title $RELEASE_NAME $GITHUB_REF_NAME |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[binaries] | ||
c = 'emcc' | ||
cpp = 'em++' | ||
strip = 'emstrip' | ||
ar = 'emar' | ||
|
||
[host_machine] | ||
system = 'emscripten' | ||
cpu_family = 'wasm32' | ||
cpu = 'wasm32' | ||
endian = 'little' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
set -euo pipefail | ||
IFS=$'\t\n' | ||
|
||
temp=.temp | ||
mkdir $temp | ||
cp $ASSET_PATH $temp/$ASSET_NAME | ||
( | ||
cd $temp | ||
gh release upload $GITHUB_REF_NAME $ASSET_NAME | ||
) | ||
rm -r $temp | ||
echo browser_download_url=https://github.com/$GITHUB_REPOSITORY/releases/download/$GITHUB_REF_NAME/$ASSET_NAME >> $GITHUB_OUTPUT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,42 @@ | ||
package @APPID@; | ||
|
||
import org.libsdl.app.SDLActivity; | ||
import java.security.KeyStore; | ||
import java.security.KeyStoreException; | ||
import java.security.NoSuchAlgorithmException; | ||
import java.util.Enumeration; | ||
import java.io.IOException; | ||
import java.util.Base64; | ||
|
||
public class PowderActivity extends SDLActivity | ||
{ | ||
public static String getCertificateBundle() | ||
{ | ||
String allPems = ""; | ||
try { | ||
KeyStore ks = KeyStore.getInstance("AndroidCAStore"); | ||
if (ks != null) { | ||
ks.load(null, null); | ||
Enumeration<String> aliases = ks.aliases(); | ||
while (aliases.hasMoreElements()) { | ||
String alias = (String)aliases.nextElement(); | ||
java.security.cert.X509Certificate cert = (java.security.cert.X509Certificate)ks.getCertificate(alias); | ||
allPems += "-----BEGIN CERTIFICATE-----\n" + Base64.getMimeEncoder().encodeToString(cert.getEncoded()) + "\n-----END CERTIFICATE-----\n";; | ||
} | ||
} | ||
} catch (IOException e) { | ||
e.printStackTrace(); | ||
return ""; | ||
} catch (KeyStoreException e) { | ||
e.printStackTrace(); | ||
return ""; | ||
} catch (NoSuchAlgorithmException e) { | ||
e.printStackTrace(); | ||
return ""; | ||
} catch (java.security.cert.CertificateException e) { | ||
e.printStackTrace(); | ||
return ""; | ||
} | ||
return allPems; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.